From 3295aedeeeefa94ca229cb601445001e07799422 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Fri, 8 Nov 2019 19:03:46 +1100 Subject: [PATCH] Update Rubocop config for new version --- .rubocop_styleguide.yml | 2 +- .rubocop_todo.yml | 13 +------------ 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/.rubocop_styleguide.yml b/.rubocop_styleguide.yml index c1fa89c3f8..483bb95ba3 100644 --- a/.rubocop_styleguide.yml +++ b/.rubocop_styleguide.yml @@ -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/**/*' diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index af6f3bcc01..91c9291ff9 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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