Skip to content

Commit

Permalink
Enable support for cops introduced by 0.85
Browse files Browse the repository at this point in the history
Namely:

- `Lint/MixedRegexpCaptureTypes`
- `Style/RedundantRegexpCharacterClass` (disabled by default due to
  rubocop/rubocop#8098)
- `Style/RedundantRegexpEscape`
  • Loading branch information
ivgiuliani committed Jun 11, 2020
1 parent 55dc60e commit 9ea8b77
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,6 +1,11 @@
Changelog
=========

2.15.0
------
* Support new cops introduced by rubocop v0.85: `Lint/MixedRegexpCaptureTypes`, `Style/RedundantRegexpEscape`
and `Style/RedundantRegexpCharacterClass` (disabled by default)

2.14.0
------
* Enable a new cop introduced by rubocop v0.84: `Lint/DeprecatedOpenSSLConstant`
Expand Down
4 changes: 2 additions & 2 deletions gc_ruboconfig.gemspec
Expand Up @@ -2,15 +2,15 @@

Gem::Specification.new do |spec|
spec.name = 'gc_ruboconfig'
spec.version = '2.14.0'
spec.version = '2.15.0'
spec.summary = "GoCardless's shared Rubocop configuration, conforming to our house style"
spec.authors = %w[GoCardless]
spec.homepage = 'https://github.com/gocardless/ruboconfig'
spec.email = %w[developers@gocardless.com]
spec.license = 'MIT'

spec.files = 'rubocop.yml'
spec.add_dependency 'rubocop', '>= 0.84'
spec.add_dependency 'rubocop', '>= 0.85'
spec.add_dependency 'rubocop-rspec', '>= 1.38.1'
spec.add_dependency 'rubocop-performance', '~> 1.5'
end
11 changes: 11 additions & 0 deletions rubocop.yml
Expand Up @@ -24,6 +24,9 @@ Lint/RaiseException:
Lint/StructNewOverride:
Enabled: true

Lint/MixedRegexpCaptureTypes:
Enabled: true

Metrics/ClassLength:
Enabled: false

Expand Down Expand Up @@ -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

0 comments on commit 9ea8b77

Please sign in to comment.