From 921f80b9d82fa13b3916aa4f710db723f91be963 Mon Sep 17 00:00:00 2001 From: Ivan Giuliani Date: Wed, 10 Jun 2020 09:52:20 +0100 Subject: [PATCH] Enable support for cops introduced by 0.85 Namely: - `Lint/MixedRegexpCaptureTypes` - `Style/RedundantRegexpCharacterClass` (disabled by default due to https://github.com/rubocop-hq/rubocop/issues/8098) - `Style/RedundantRegexpEscape` --- rubocop.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/rubocop.yml b/rubocop.yml index f8c3842..4153d9c 100644 --- a/rubocop.yml +++ b/rubocop.yml @@ -24,6 +24,9 @@ Lint/RaiseException: Lint/StructNewOverride: Enabled: true +Lint/MixedRegexpCaptureTypes: + Enabled: true + Metrics/ClassLength: Enabled: false @@ -171,5 +174,13 @@ Style/ExponentialNotation: Style/SlicingWithRange: Enabled: true +# Re-enable this when the following is resolved: +# https://github.com/rubocop-hq/rubocop/issues/8098 +Style/RedundantRegexpCharacterClass: + Enabled: false + +Style/RedundantRegexpEscape: + Enabled: true + Lint/DeprecatedOpenSSLConstant: Enabled: true