From 3406e225880578323471bc622362605483c2a168 Mon Sep 17 00:00:00 2001 From: cn Date: Wed, 26 Feb 2020 11:33:44 +0100 Subject: [PATCH] gem: enable new rubocop rules, cleanup --- .rubocop.yml | 17 ++++++++++++----- .rubocop_todo.yml | 7 ------- 2 files changed, 12 insertions(+), 12 deletions(-) delete mode 100644 .rubocop_todo.yml diff --git a/.rubocop.yml b/.rubocop.yml index faf42b2..9221422 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,5 +1,3 @@ -inherit_from: .rubocop_todo.yml - AllCops: TargetRubyVersion: '2.3' @@ -19,6 +17,9 @@ Layout/HashAlignment: Layout/LeadingEmptyLines: Enabled: false +Layout/LineLength: + Max: 200 + Layout/SpaceInsideHashLiteralBraces: Enabled: false @@ -34,9 +35,6 @@ Metrics/ClassLength: Metrics/CyclomaticComplexity: Enabled: false -Metrics/LineLength: - Max: 200 - Metrics/MethodLength: Enabled: false @@ -64,6 +62,15 @@ Style/FrozenStringLiteralComment: Style/GuardClause: Enabled: false +Style/HashEachMethods: + Enabled: true + +Style/HashTransformKeys: + Enabled: true + +Style/HashTransformValues: + Enabled: true + Style/IdenticalConditionalBranches: Enabled: false diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml deleted file mode 100644 index 6f945a4..0000000 --- a/.rubocop_todo.yml +++ /dev/null @@ -1,7 +0,0 @@ -# This configuration was generated by -# `rubocop --auto-gen-config` -# on 2018-02-23 12:54:10 +0100 using RuboCop version 0.52.1. -# The point is for the user to remove these configuration records -# one by one as the offenses are removed from the code base. -# Note that changes in the inspected code, or installation of new -# versions of RuboCop, may require this file to be generated again.