From 26a6d5504dbec70fa062a266e52008a50e86c79f Mon Sep 17 00:00:00 2001 From: Duncan Stuart Date: Mon, 12 Aug 2019 14:41:12 +0200 Subject: [PATCH] Rubocop: Group cops by type This decreases the risk of adding a rule twice, and makes things easier to find --- .rubocop.yml | 52 ++++++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 04a4e51..6306ca1 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -30,30 +30,9 @@ Metrics/CyclomaticComplexity: Metrics/PerceivedComplexity: Enabled: false -Style/StructInheritance: - Enabled: false - Layout/AlignParameters: EnforcedStyle: with_fixed_indentation -Style/StringLiterals: - EnforcedStyle: double_quotes - -Style/StringLiteralsInInterpolation: - EnforcedStyle: double_quotes - -Style/AndOr: - Enabled: false - -Style/Not: - Enabled: false - -Style/FrozenStringLiteralComment: - Enabled: true - -Documentation: - Enabled: false # TODO: Enable again once we have more docs - Layout/CaseIndentation: EnforcedStyle: case SupportedStyles: @@ -61,16 +40,37 @@ Layout/CaseIndentation: - end IndentOneStep: true -Style/PercentLiteralDelimiters: - PreferredDelimiters: - '%w': "[]" - '%W': "[]" - Layout/AccessModifierIndentation: EnforcedStyle: outdent Layout/EndAlignment: EnforcedStyleAlignWith: variable +Style/FrozenStringLiteralComment: + Enabled: true + +Style/PercentLiteralDelimiters: + PreferredDelimiters: + '%w': "[]" + '%W': "[]" + +Style/StringLiterals: + EnforcedStyle: double_quotes + +Style/StringLiteralsInInterpolation: + EnforcedStyle: double_quotes + +Style/StructInheritance: + Enabled: false + +Style/AndOr: + Enabled: false + +Style/Not: + Enabled: false + Style/DoubleNegation: Enabled: false + +Documentation: + Enabled: false # TODO: Enable again once we have more docs