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/LineLengthnow allows inline# rubocop:disable ...comments to exceed the line length. (#488)Layout/LineLengthnow allowsdef test_...lines to exceed the line length limit, making it consistent withtest "..." dolines, which were already permitted to exceed the limit. (#496)Naming/MethodNamenow allows methods starting withtest_to violate thesnake_caseconvention. (#511)Style/AndOrnow allowsandandoroutside 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_caseby @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