initial rebuild from v1
This commit is contained in:
46
.rubocop.yml
Normal file
46
.rubocop.yml
Normal file
@@ -0,0 +1,46 @@
|
||||
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'
|
||||
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'
|
||||
Reference in New Issue
Block a user