You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

101 lines
1.6 KiB
Plaintext

require:
- rubocop-rspec
- rubocop-performance
- rubocop-rails
AllCops:
DisplayCopNames: true
DisplayStyleGuide: true
NewCops: enable
TargetRubyVersion: <%= RUBY_VERSION[/\d+\.\d+/] %>
Exclude:
- "bin/*"
- db/schema.rb
- "node_modules/**/*"
- "tmp/**/*"
- "vendor/**/*"
Layout/HashAlignment:
EnforcedColonStyle:
- table
- key
EnforcedHashRocketStyle:
- table
- key
Layout/LineLength:
Exclude:
- "config/initializers/content_security_policy.rb"
Layout/SpaceAroundEqualsInParameterDefault:
EnforcedStyle: space
Metrics/AbcSize:
Max: 20
Exclude:
- "rspec/**/*"
Metrics/BlockLength:
Exclude:
- "config/**/*"
- "rspec/**/*"
Metrics/ClassLength:
Exclude:
- "rspec/**/*"
Metrics/MethodLength:
Max: 18
Exclude:
- "db/migrate/*"
- "rspec/**/*"
Naming/MemoizedInstanceVariableName:
EnforcedStyleForLeadingUnderscores: optional
Naming/VariableNumber:
Enabled: false
Performance/Casecmp:
Enabled: false
Rails/ApplicationRecord:
Exclude:
- "db/migrate/**"
Rails/RakeEnvironment:
Enabled: false
Rails/RefuteMethods:
Enabled: false
Rails/Validation:
Enabled: false
Style/BarePercentLiterals:
EnforcedStyle: percent_q
Style/ClassAndModuleChildren:
Enabled: nested
Style/Documentation:
Enabled: true
Style/DoubleNegation:
Enabled: false
Style/EmptyMethod:
Enabled: true
Style/FrozenStringLiteralComment:
Enabled: true
Style/NumericPredicate:
Enabled: false
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/TrivialAccessors:
AllowPredicates: true