Files
site/.rubocop.yml
2021-04-29 17:42:31 +02:00

48 lines
703 B
YAML

require:
- rubocop-rails
- rubocop-performance
AllCops:
Exclude:
- 'spec/**/*'
- 'Rakefile'
- 'bin/*'
- 'log/**/*'
- 'db/schema.rb'
- 'db/migrate/*.rb'
- 'config/initializers/*.rb'
- 'config/environments/*.rb'
- 'config/*.rb'
- 'node_modules/**/*'
NewCops: enable
Layout/LineLength:
Max: 140
Metrics/ClassLength:
Max: 200
Metrics/BlockLength:
Max: 40
Metrics/MethodLength:
Exclude:
- 'db/migrate/*.rb'
Max: 30
Metrics/AbcSize:
Max: 35
Metrics/ParameterLists:
CountKeywordArgs: false
Style/WordArray:
EnforcedStyle: brackets
Style/SymbolArray:
EnforcedStyle: brackets
Style/Documentation:
Exclude:
- 'db/migrate/*.rb'