Add rubocop TargetVersion; disable new cops
This commit is contained in:
parent
846ba53d1b
commit
a68be76a15
2 changed files with 14 additions and 3 deletions
10
.rubocop.yml
10
.rubocop.yml
|
|
@ -12,10 +12,18 @@ AllCops:
|
||||||
- 'bundle/**/*'
|
- 'bundle/**/*'
|
||||||
- 'config/**/*'
|
- 'config/**/*'
|
||||||
- 'bin/*'
|
- 'bin/*'
|
||||||
|
TargetRubyVersion: 2.4
|
||||||
|
|
||||||
#################### Metrics ###############################
|
#################### Metrics ###############################
|
||||||
|
|
||||||
|
# Start with cops for Ruby >= 2.3 disabled
|
||||||
|
Style/FrozenStringLiteralComment:
|
||||||
|
Enabled: false
|
||||||
|
Style/SafeNavigation:
|
||||||
|
Enabled: false
|
||||||
|
Style/NumericPredicate:
|
||||||
|
Enabled: false
|
||||||
|
|
||||||
# Avoid deep blocks nesting
|
# Avoid deep blocks nesting
|
||||||
Metrics/BlockNesting:
|
Metrics/BlockNesting:
|
||||||
Max: 4
|
Max: 4
|
||||||
|
|
|
||||||
|
|
@ -277,7 +277,7 @@ Lint/IneffectiveAccessModifier:
|
||||||
- 'app/models/conference.rb'
|
- 'app/models/conference.rb'
|
||||||
|
|
||||||
# Offense count: 2
|
# Offense count: 2
|
||||||
Lint/RescueWithoutErrorClass:
|
Style/RescueStandardError:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'app/controllers/users/omniauth_callbacks_controller.rb'
|
- 'app/controllers/users/omniauth_callbacks_controller.rb'
|
||||||
- 'lib/tasks/migrate_config.rake'
|
- 'lib/tasks/migrate_config.rake'
|
||||||
|
|
@ -705,8 +705,11 @@ Style/TernaryParentheses:
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyleForMultiline, SupportedStylesForMultiline.
|
# Configuration parameters: EnforcedStyleForMultiline, SupportedStylesForMultiline.
|
||||||
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
||||||
Style/TrailingCommaInLiteral:
|
Style/TrailingCommaInArrayLiteral:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'Guardfile'
|
- 'Guardfile'
|
||||||
|
|
||||||
|
Style/TrailingCommaInHashLiteral:
|
||||||
|
Exclude:
|
||||||
- 'db/migrate/20140701123203_add_events_per_week_to_conference.rb'
|
- 'db/migrate/20140701123203_add_events_per_week_to_conference.rb'
|
||||||
- 'spec/models/conference_spec.rb'
|
- 'spec/models/conference_spec.rb'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue