Files
danbooru/.rubocop.yml
2020-06-11 13:31:17 -05:00

105 lines
1.5 KiB
YAML

require:
- rubocop-rails
AllCops:
TargetRubyVersion: 2.7.0
Exclude:
- "bin/*"
- "node_modules/**/*"
Bundler/OrderedGems:
Enabled: false
Layout/CaseIndentation:
EnforcedStyle: end
Layout/EmptyLineAfterGuardClause:
Enabled: false
Layout/EndAlignment:
EnforcedStyleAlignWith: variable
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent
Layout/LineLength:
Enabled: false
Layout/MultilineOperationIndentation:
EnforcedStyle: indented
Layout/SpaceInsideBlockBraces:
Enabled: false
Layout/SpaceInsideHashLiteralBraces:
Enabled: false
Metrics/BlockNesting:
Max: 4
Metrics/ClassLength:
Max: 500
Metrics/MethodLength:
Max: 100
Metrics/ModuleLength:
Max: 500
Metrics/ParameterLists:
Max: 4
Lint/InheritException:
EnforcedStyle: standard_error
Naming/MethodParameterName:
Enabled: false
Style/AsciiComments:
Enabled: false
Style/CommentAnnotation:
Enabled: false
Style/Documentation:
Enabled: false
Style/EmptyElse:
EnforcedStyle: empty
Style/EmptyMethod:
EnforcedStyle: expanded
Style/FormatStringToken:
Enabled: false
Style/FloatDivision:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/HashSyntax:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
Style/StringLiterals:
Enabled: false
Style/StringLiteralsInInterpolation:
Enabled: false
Style/SymbolArray:
MinSize: 10
Style/TernaryParentheses:
EnforcedStyle: require_parentheses_when_complex
Style/WordArray:
MinSize: 10