mirror of
https://github.com/Evolix/chexpire.git
synced 2024-06-30 04:52:52 +02:00
Jérémy Lecour
2530264708
Add good settings for Rubocop from DNSimple blog : https://blog.dnsimple.com/2018/06/quick-tips-for-practical-rubocop-workflow/ Add Rubocop command in INSTALL.md
77 lines
1.3 KiB
YAML
77 lines
1.3 KiB
YAML
AllCops:
|
|
DisplayCopNames: true
|
|
DisplayStyleGuide: true
|
|
ExtraDetails: false
|
|
TargetRubyVersion: 2.5
|
|
Exclude:
|
|
- 'node_modules/**/*'
|
|
- 'vendor/**/*'
|
|
- '.git/**/*'
|
|
- 'lib/tasks/auto_annotate_models.rake'
|
|
- 'db/**/*'
|
|
- 'config/**/*'
|
|
- 'script/**/*'
|
|
- 'bin/**/*'
|
|
- !ruby/regexp /old_and_unused\.rb$/
|
|
- 'app/admin/*'
|
|
- 'tmp/*'
|
|
- Gemfile
|
|
- Capfile
|
|
|
|
Documentation:
|
|
Enabled: false
|
|
|
|
FrozenStringLiteralComment:
|
|
Enabled: false
|
|
|
|
ClassAndModuleChildren:
|
|
Enabled: false
|
|
|
|
Metrics/BlockLength:
|
|
Enabled: true
|
|
Exclude:
|
|
- lib/tasks/**/*
|
|
|
|
AsciiComments:
|
|
Enabled: false
|
|
|
|
AlignParameters:
|
|
Enabled: false
|
|
|
|
Layout/EndAlignment:
|
|
Enabled: true
|
|
EnforcedStyleAlignWith: variable
|
|
|
|
Metrics/LineLength:
|
|
Max: 100
|
|
|
|
Style/BlockDelimiters:
|
|
EnforcedStyle: semantic
|
|
|
|
Style/Lambda:
|
|
Enabled: false
|
|
|
|
Style/SignalException:
|
|
EnforcedStyle: semantic
|
|
|
|
Style/NumericLiteralPrefix:
|
|
Enabled: false
|
|
|
|
Style/NumericLiterals:
|
|
Enabled: false
|
|
|
|
Style/StringLiterals:
|
|
EnforcedStyle: double_quotes
|
|
|
|
Style/SymbolArray:
|
|
Enabled: false
|
|
|
|
Style/TrailingCommaInArguments:
|
|
EnforcedStyleForMultiline: comma
|
|
|
|
Style/TrailingCommaInArrayLiteral:
|
|
EnforcedStyleForMultiline: comma
|
|
|
|
Style/TrailingCommaInHashLiteral:
|
|
EnforcedStyleForMultiline: comma
|