From 109eff73cf6a8f436f6244821e2ed2450c47bcf3 Mon Sep 17 00:00:00 2001 From: Louis-Michel Couture Date: Mon, 25 May 2020 11:41:27 -0400 Subject: [PATCH] Enable new cops globally Instead of enabling new cops manually, let Rubocop enable them. This will help when running CI on repository where the version of Rubocop hasn't been updated yet. This also simplify the process of updating Rubocop betwen repos. If we don't want a new cop, we would disable it here. --- .rubocop.yml | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index f1ab246..107e5d8 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -20,6 +20,8 @@ AllCops: - tmp/**/* - vendor/**/* - node_modules/**/* + # Enable all newly added Cops + NewCops: enable Rails: Enabled: true @@ -53,13 +55,6 @@ Layout/LineLength: Layout/MultilineAssignmentLayout: Enabled: true EnforcedStyle: new_line -Layout/SpaceAroundMethodCallOperator: - Enabled: true - -Lint/RaiseException: - Enabled: true -Lint/StructNewOverride: - Enabled: true Performance/StringReplacement: Enabled: false @@ -77,16 +72,8 @@ RSpec/LetSetup: Style/Documentation: Enabled: false -Style/ExponentialNotation: - Enabled: true Style/GuardClause: Enabled: false -Style/HashEachMethods: - Enabled: true -Style/HashTransformKeys: - Enabled: true -Style/HashTransformValues: - Enabled: true Style/Lambda: EnforcedStyle: literal Style/StringLiterals: