Bump rubocop from 0.76.0 to 0.78.0
Bumps rubocop from 0.76.0 to 0.78.0.
Release notes
Sourced from rubocop's releases.
RuboCop 0.78
New features
- #7528: Add new
Lint/NonDeterministicRequireOrder
cop. (@mangara)- #7559: Add
EnforcedStyleForExponentOperator
parameter toLayout/SpaceAroundOperators
cop. (@khiav223577)Bug fixes
- #7530: Typo in
Style/TrivialAccessors
'sAllowedMethods
. (@movermeyer)- #7532: Fix an error for
Style/TrailingCommaInArguments
when using an anonymous function with multiple line arguments withEnforcedStyleForMultiline: consistent_comma
. (@koic)- #7534: Fix an incorrect autocorrect for
Style/BlockDelimiters
cop andLayout/SpaceBeforeBlockBraces
cop withEnforcedStyle: no_space
when using multiline braces. (@koic)- #7231: Fix the exit code to be
2
rather when0
when the config file contains an unknown cop. (@jethroo)- #7513: Fix abrupt error on autocorrecting with
--disable-uncorrectable
. (@tejasbubane)- #7537: Fix a false positive for
Layout/SpaceAroundOperators
when using a Rational literal with/
(e.g.2/3r
). (@koic)- #7029: Make
Style/Attr
not flag offense for customattr
method. (@tejasbubane)- #7574: Fix a corner case that made
Style/GuardClause
crash. (@buehmann)Changes
- #7514: Expose correctable status on offense and in formatters. (@tyler-ball)
- #7542: (Breaking) Move
LineLength
cop fromMetrics
department toLayout
department. (@koic)RuboCop 0.77
Bug fixes
- #7493: Fix
Style/RedundantReturn
to inspect conditional constructs that are preceded by other statements. (@buehmann)- #7509: Fix
Layout/SpaceInsideArrayLiteralBrackets
to correct empty lines. (@ayacai115)- #7517:
Style/SpaceAroundKeyword
allows::
aftersuper
. (@ozydingo)- #7515: Fix a false negative for
Style/RedundantParentheses
when calling a method with safe navigation operator. (@koic)- #7477: Fix line length autocorrect for semicolons in string literals. ([@maxh][])
- #7522: Fix a false-positive edge case (
n % 2 == 2
) forStyle/EvenOdd
. (@buehmann)Changes ... (truncated)
Changelog
Sourced from rubocop's changelog.
0.78.0 (2019-12-18)
New features
- #7528: Add new
Lint/NonDeterministicRequireOrder
cop. (@mangara)- #7559: Add
EnforcedStyleForExponentOperator
parameter toLayout/SpaceAroundOperators
cop. (@khiav223577)Bug fixes
- #7530: Typo in
Style/TrivialAccessors
'sAllowedMethods
. (@movermeyer)- #7532: Fix an error for
Style/TrailingCommaInArguments
when using an anonymous function with multiple line arguments withEnforcedStyleForMultiline: consistent_comma
. (@koic)- #7534: Fix an incorrect autocorrect for
Style/BlockDelimiters
cop andLayout/SpaceBeforeBlockBraces
cop withEnforcedStyle: no_space
when using multiline braces. (@koic)- #7231: Fix the exit code to be
2
rather when0
when the config file contains an unknown cop. (@jethroo)- #7513: Fix abrupt error on autocorrecting with
--disable-uncorrectable
. (@tejasbubane)- #7537: Fix a false positive for
Layout/SpaceAroundOperators
when using a Rational literal with/
(e.g.2/3r
). (@koic)- #7029: Make
Style/Attr
not flag offense for customattr
method. (@tejasbubane)- #7574: Fix a corner case that made
Style/GuardClause
crash. (@buehmann)Changes
- #7514: Expose correctable status on offense and in formatters. (@tyler-ball)
- #7542: (Breaking) Move
LineLength
cop fromMetrics
department toLayout
department. (@koic)0.77.0 (2019-11-27)
Bug fixes
- #7493: Fix
Style/RedundantReturn
to inspect conditional constructs that are preceded by other statements. (@buehmann)- #7509: Fix
Layout/SpaceInsideArrayLiteralBrackets
to correct empty lines. (@ayacai115)- #7517:
Style/SpaceAroundKeyword
allows::
aftersuper
. (@ozydingo)- #7515: Fix a false negative for
Style/RedundantParentheses
when calling a method with safe navigation operator. (@koic)- #7477: Fix line length autocorrect for semicolons in string literals. ([@maxh][])
- #7522: Fix a false-positive edge case (
n % 2 == 2
) forStyle/EvenOdd
. (@buehmann)- #7506: Make
Style/IfUnlessModifier
respect all settings inMetrics/LineLength
. ([@jonas054][])Changes
Commits
-
7aa3766
Cut 0.78 -
d2d8c66
Merge pull request #7575 from buehmann/guard-empty-begin/7574 -
acea172
Fix an oversight in specs -
b88ff75
[Fix #7574] Fix corner case in Style/GuardClause -
dff7052
Replace "can not" with "cannot" -
cc7e221
Add new Lint/NonDeterministicRequireOrder cop (#7528) -
7276872
Support EnforcedStyleForExponentOperator for SpaceAroundOperators cop -
d54e15c
Add the Style Guide URL forGemspec/RubyVersionGlobalsUsage
-
e6a51be
Tweak a changelog entry -
affae92
Fix the changelog - Additional commits viewable in compare view