From 35475546ef663d19eb44201fef96807e9fc76833 Mon Sep 17 00:00:00 2001 From: Brandon High Date: Mon, 4 Nov 2019 14:57:53 -0800 Subject: [PATCH] Update rubocop configs Previously, there were some rubocop rule names that were causing rubocop to fail to run entirely. This commit updates the rubocop configs to match the new rubocop rule names so that we can see all the issues that need correcting. --- .rubocop.yml | 2 +- .rubocop_todo.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 6c94c01..e588c52 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -58,7 +58,7 @@ Style/RegexpLiteral: # In some cases readability is better without these cops enabled Style/ConditionalAssignment: Enabled: false -Next: +Style/Next: Enabled: false Metrics/ParameterLists: Max: 10 diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 3d824d7..2c162d6 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -55,7 +55,7 @@ Layout/EmptyLinesAroundModuleBody: # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth. # SupportedStyles: special_inside_parentheses, consistent, align_braces -Layout/IndentHash: +Layout/IndentFirstHashElement: Exclude: - 'lib/vmpooler/api/helpers.rb' - 'lib/vmpooler/api/v1.rb' @@ -246,7 +246,7 @@ Style/PerlBackrefs: # NamePrefix: is_, has_, have_ # NamePrefixBlacklist: is_, has_, have_ # NameWhitelist: is_a? -Style/PredicateName: +Naming/PredicateName: Exclude: - 'spec/**/*' - 'lib/vmpooler/api/helpers.rb' @@ -289,7 +289,7 @@ Style/TernaryParentheses: # Offense count: 2 # Configuration parameters: EnforcedStyle, SupportedStyles. # SupportedStyles: snake_case, camelCase -Style/VariableName: +Naming/VariableName: Exclude: - 'lib/vmpooler/api/v1.rb'