diff --git a/Library/.rubocop.yml b/Library/.rubocop.yml index 039f51d835..a3e2800eba 100644 --- a/Library/.rubocop.yml +++ b/Library/.rubocop.yml @@ -10,6 +10,14 @@ Style/StringLiterals: Style/StringLiteralsInInterpolation: EnforcedStyle: double_quotes +# percent-x is allowed for multiline +Style/CommandLiteral: + EnforcedStyle: mixed + +# paths abound, easy escape +Style/RegexpLiteral: + EnforcedStyle: slashes + # no metrics for formulas Metrics/AbcSize: Enabled: false @@ -48,10 +56,6 @@ Style/EmptyLineBetweenDefs: Style/NumericLiterals: Enabled: false -# paths abound, easy escape -Style/RegexpLiteral: - MaxSlashes: 0 - # consistency and readability when faced with string interpolation Style/PercentLiteralDelimiters: PreferredDelimiters: @@ -101,12 +105,6 @@ Style/WordArray: Style/UnneededCapitalW: Enabled: false -# percent-x is allowed for multiline -# TODO: enforce when rubocop has fixed this -# https://github.com/bbatsov/rubocop/issues/1397 -Style/UnneededPercentX: - Enabled: false - # TODO: rubocop bug regarding __END__ # see https://github.com/bbatsov/rubocop/issues/1541 Style/TrailingWhitespace: