Skip to content

Commit

Permalink
Merge pull request #68 from gocardless/cop-0.85.1
Browse files Browse the repository at this point in the history
Enable support for cops introduced by 0.85
  • Loading branch information
ivgiuliani authored Jul 8, 2020
2 parents 55dc60e + 08f6d02 commit 5a92941
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Changelog
=========

2.15.0
------
* Support new cop introduced by rubocop v0.87: `Style/AccessorGrouping` (disabled by default),
`Style/BisectedAttrAccessor` and `Style/RedundantAssignment`
* Support new cop introduced by rubocop v0.86: `Style/RedundantFetchBlock`
* Support new cops introduced by rubocop v0.85: `Lint/MixedRegexpCaptureTypes`, `Style/RedundantRegexpEscape`
and `Style/RedundantRegexpCharacterClass`

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
Original file line number Diff line number Diff line change
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[[email protected]]
spec.license = 'MIT'

spec.files = 'rubocop.yml'
spec.add_dependency 'rubocop', '>= 0.84'
spec.add_dependency 'rubocop', '>= 0.87'
spec.add_dependency 'rubocop-rspec', '>= 1.38.1'
spec.add_dependency 'rubocop-performance', '~> 1.5'
end
21 changes: 21 additions & 0 deletions rubocop.yml
Original file line number Diff line number Diff line change
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,23 @@ Style/ExponentialNotation:
Style/SlicingWithRange:
Enabled: true

Style/RedundantRegexpCharacterClass:
Enabled: true

Style/RedundantRegexpEscape:
Enabled: true

Style/RedundantFetchBlock:
Enabled: true

Style/AccessorGrouping:
Enabled: false

Style/BisectedAttrAccessor:
Enabled: true

Style/RedundantAssignment:
Enabled: true

Lint/DeprecatedOpenSSLConstant:
Enabled: true

0 comments on commit 5a92941

Please sign in to comment.