Update Rubocop config for new version

This commit is contained in:
Maikel Linke
2019-11-08 19:03:46 +11:00
parent eaaf082572
commit 3295aedeee
2 changed files with 2 additions and 13 deletions

View File

@@ -5,7 +5,7 @@
# rubocop locally, the default configuration file `.rubocop.yml` loads
# our "todo lists" to ignore all current violations.
AllCops:
TargetRubyVersion: 2.1
TargetRubyVersion: 2.2
TargetRailsVersion: 3.2
Exclude:
- 'bin/**/*'

View File

@@ -54,7 +54,7 @@ Layout/ExtraSpacing:
# Cop supports --auto-correct.
# Configuration parameters: IndentationWidth.
# SupportedStyles: special_inside_parentheses, consistent, align_braces
Layout/IndentHash:
Layout/IndentFirstHashElement:
EnforcedStyle: consistent
# Offense count: 1
@@ -235,17 +235,6 @@ Naming/VariableNumber:
Exclude:
- 'spec/lib/open_food_network/products_and_inventory_report_spec.rb'
# Offense count: 1
Performance/Caller:
Exclude:
- 'app/controllers/application_controller.rb'
# Offense count: 3
# Cop supports --auto-correct.
Performance/InefficientHashSearch:
Exclude:
- 'spec/controllers/api/products_controller_spec.rb'
# Offense count: 1
# Configuration parameters: EnforcedStyle.
# SupportedStyles: strict, flexible