development-dependency: bump rubocop from 1.21.0 to 1.22.0
Bumps rubocop from 1.21.0 to 1.22.0.
Release notes
Sourced from rubocop's releases.
RuboCop 1.22
New features
- #10111: Add new
Style/NumberedParametersLimit
cop. (@dvandersluis
)- #10025: Changed cop
SpaceInsideParens
to include acompact
style. (@itay-grudev
)- #10084: Add new
Lint/RequireRelativeSelfPath
cop. (@koic
)- #8327: Add new cop
Style/SelectByRegexp
. (@dvandersluis
)- #10100: Add new
Style/NumberedParameters
cop. (@Hugo-Hache
)- #10103: Add
AllowHttpProtocol
option toBundler/InsecureProtocolSource
. (@koic
)- #10102: Add new
Security/IoMethods
cop. (@koic
)Bug fixes
- #10110: Update
Layout/DotPosition
to be able to handle heredocs. (@dvandersluis
)- #10134: Update
Style/MutableConstant
to not consider multiline uninterpolated strings as unfrozen in ruby 3.0. (@dvandersluis
)- #10124: Fix
Layout/RedundantLineBreak
adding extra space within method chains. (@dvandersluis
)- #10118: Fix crash with
Style/RedundantSort
when the block doesn't only contain a singlesend
node. (@dvandersluis
)- #10135: Fix
Style/WordArray
to exclude files in--auto-gen-config
whenpercent
style is given but brackets are required. (@dvandersluis
)- #10090: Fix a false negative for
Style/ArgumentsForwarding
when using only kwrest arg. (@koic
)- #10099: Update
Style/RedundantFreeze
to stop consideringENV
values as immutable. (@byroot
)- #10078: Fix
Layout/LineLength
reported length when ignoring directive comments. (@dvandersluis
)- #9934: Fix configuration loading to not raise an error for an obsolete ruby version that is subsequently overridden. (
@dvandersluis
)- #10136: Update
Lint/AssignmentInCondition
to not consider assignments within blocks in conditions. (@dvandersluis
)- #9588: Fix causing a variable to be shadowed from outside the rescue block in the logic of Naming/RescuedExceptionsVariableName. (
@lilisako
)- #10096: Fix
Lint/AmbiguousOperatorPrecedence
withand
/or
operators. (@dvandersluis
)- #10106: Fix
Style/RedundantSelf
for pattern matching. (@dvandersluis
)- #10066: Fix how
MinDigits
is calculated forStyle/NumericLiterals
when generating a configuration file. (@dvandersluis
)Changes
- #10088: Update
Lint/BooleanSymbol
to beSafeAutoCorrect: false
rather thanSafe: false
. (@dvandersluis
)- #10122: Update
Style/RedundantSort
to be unsafe, and revert the special case forsize
from #10061. (@dvandersluis
)- #10130: Update
Lint/ElseLayout
to be able to handle anelse
with only a single line. (@dvandersluis
)- #8431: Add
Safety
section to documentation for all cops that areSafe: false
orSafeAutoCorrect: false
. (@dvandersluis
)
Changelog
Sourced from rubocop's changelog.
1.22.0 (2021-09-29)
New features
- #8431: Add
Safety
section to documentation for all cops that areSafe: false
orSafeAutoCorrect: false
. ([@dvandersluis
][])- #10132: Reorganize output of
rubocop --help
for better clarity. ([@dvandersluis
][])- #10111: Add new
Style/NumberedParametersLimit
cop. ([@dvandersluis
][])- #10025: Changed cop
SpaceInsideParens
to include acompact
style. ([@itay-grudev
][])- #10084: Add new
Lint/RequireRelativeSelfPath
cop. ([@koic
][])- #8327: Add new cop
Style/SelectByRegexp
. ([@dvandersluis
][])- #10100: Add new
Style/NumberedParameters
cop. ([@Hugo-Hache
][])- #10103: Add
AllowHttpProtocol
option toBundler/InsecureProtocolSource
. ([@koic
][])- #10102: Add new
Security/IoMethods
cop. ([@koic
][])Bug fixes
- #10110: Update
Layout/DotPosition
to be able to handle heredocs. ([@dvandersluis
][])- #10134: Update
Style/MutableConstant
to not consider multiline uninterpolated strings as unfrozen in ruby 3.0. ([@dvandersluis
][])- #10124: Fix
Layout/RedundantLineBreak
adding extra space within method chains. ([@dvandersluis
][])- #10118: Fix crash with
Style/RedundantSort
when the block doesn't only contain a singlesend
node. ([@dvandersluis
][])- #10135: Fix
Style/WordArray
to exclude files in--auto-gen-config
whenpercent
style is given but brackets are required. ([@dvandersluis
][])- #10090: Fix a false negative for
Style/ArgumentsForwarding
when using only kwrest arg. ([@koic
][])- #10099: Update
Style/RedundantFreeze
to stop consideringENV
values as immutable. ([@byroot
][])- #10078: Fix
Layout/LineLength
reported length when ignoring directive comments. ([@dvandersluis
][])- #9934: Fix configuration loading to not raise an error for an obsolete ruby version that is subsequently overridden. ([
@dvandersluis
][])- #10136: Update
Lint/AssignmentInCondition
to not consider assignments within blocks in conditions. ([@dvandersluis
][])- #9588: Fix causing a variable to be shadowed from outside the rescue block in the logic of Naming/RescuedExceptionsVariableName. ([
@lilisako
][])- #10096: Fix
Lint/AmbiguousOperatorPrecedence
withand
/or
operators. ([@dvandersluis
][])- #10106: Fix
Style/RedundantSelf
for pattern matching. ([@dvandersluis
][])- #10066: Fix how
MinDigits
is calculated forStyle/NumericLiterals
when generating a configuration file. ([@dvandersluis
][])Changes
- #10088: Update
Lint/BooleanSymbol
to beSafeAutoCorrect: false
rather thanSafe: false
. ([@dvandersluis
][])- #10122: Update
Style/RedundantSort
to be unsafe, and revert the special case forsize
from #10061. ([@dvandersluis
][])- #10130: Update
Lint/ElseLayout
to be able to handle anelse
with only a single line. ([@dvandersluis
][])
Commits
-
1bdcf65
Cut 1.22.0 -
2c9664d
Fix a changelog entry -
a16bcb4
Update Changelog -
46d8867
[Fix #10135] FixStyle/WordArray
to exclude files in--auto-gen-config
wh... -
e21a318
Merge pull request #10139 from dvandersluis/issue/10134 -
ed39d2b
[Fix #10134] UpdateStyle/MutableConstant
to not consider multiline uninter... -
6dfc273
Merge pull request #10137 from dvandersluis/issue/10136 -
45d8ed5
[Fix #10136] UpdateLint/AssignmentInCondition
to not consider assignments ... -
3a694f6
Update the message forStyle/OptionalBooleanParameter
. -
a94b9fa
Merge pull request #9961 from lilisako/fix-shadow-variable-in-rescued-excepti... - Additional commits viewable in compare view
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
-
@dependabot-bot rebase
will rebase this MR -
@dependabot-bot recreate
will recreate this MR rewriting all the manual changes and resolving conflicts