v2.13.0
What's Changed
Enabled Cops
The following cops have been enabled:
Lint/DuplicateMatchPattern
(#525)Metrics/CollectionLiteralLength
(#510)Style/DataInheritance
(#524)Style/DirEmpty
(#510)Style/FileEmpty
(#510)Style/RedundantHeredocDelimiterQuotes
(#497)Style/RedundantLineContinuation
(#524)
Changed Cops
Layout/LineLength
now allows inline# rubocop:disable ...
comments to exceed the line length. (#488)Layout/LineLength
now allowsdef test_...
lines to exceed the line length limit, making it consistent withtest "..." do
lines, which were already permitted to exceed the limit. (#496)Naming/MethodName
now allows methods starting withtest_
to violate thesnake_case
convention. (#511)Style/AndOr
now allowsand
andor
outside of conditionals (which must still use&&
and||
instead). (#515)
Minimum Rubocop Version
The minimum Rubocop version is now 1.50.0
(#525).
Relevant PRs
- Ignore lines made long by cop directive comments by @sambostock in #488
- Allow
def test_...
lines to be long by @sambostock in #496 - Bump rubocop from 1.44.1 to 1.45.1 by @dependabot in #497
- Bump rubocop from 1.45.1 to 1.48.0 by @dependabot in #510
- Allow
test_
method names to violatesnake_case
by @sambostock in #511 - Bump rubocop from 1.48.0 to 1.48.1 by @dependabot in #513
- Set Style/AndOr.EnforcedStyle to 'conditionals' by @cbothner in #515
- Bump rubocop from 1.48.1 to 1.49.0 by @dependabot in #524
- Bump rubocop from 1.49.0 to 1.50.0 by @dependabot in #525
New Contributors
Full Changelog: v2.12.0...v2.13.0