development-dependency: bump rubocop from 1.18.4 to 1.19.0
Bumps rubocop from 1.18.4 to 1.19.0.
Release notes
Sourced from rubocop's releases.
RuboCop 1.19
New features
- #4182: Add
Lint/AmbiguousRange
cop to check for ranges with ambiguous boundaries. (@dvandersluis
)- #10000: Parallel static analysis by default. (
@koic
)- #9948: Support Ruby 2.7's pattern matching for
Style/ConditionalAssignment
cop. (@koic
)- #9999: Add new
Style/RedundantSelfAssignmentBranch
cop. (@koic
)Bug fixes
- #9927: Indent hash values in
Layout/LineEndStringConcatenationIndentation
. (@jonas054
)- #9959: Make
Style/IdenticalConditionalBranches
able to handle ternaryif
s. (@dvandersluis
)- #9946: Avoid slow regexp matches in
Style/CommentedKeyword
. (@jonas054
)- #7422: Treat constant assignment like other assignment in
Layout/SpaceAroundOperators
. (@dvandersluis
)- #9953: Fix an infinite loop error and a false auto-correction behavior for
Layout/EndAlignment
when using a conditional statement in a method argument. (@koic
)- #9958: Prevent an infinite loop when a detected method has fewer arguments than expected. (
@dvandersluis
)- #9977: Update
Layout/EmptyLineAfterGuardClause
to not register an offense if there is another expression following the guard clause on the same line. (@dvandersluis
)- #9980: Fix a false positive for
Style/IdenticalConditionalBranches
when assigning to a variable used in a condition. (@koic
)- #9975: Parentheses are always required for
Style/MethodDefParentheses
when a forwarding argument (...
) is used. (@dvandersluis
)- #9984: Fix false negatives involving heredocs for
Layout/SpaceBeforeComma
,Layout/SpaceBeforeComment
,Layout/SpaceBeforeSemicolon
andLayout/SpaceInsideParens
. (@dvandersluis
)- #9954: Fix infinite loop error for
Layout/HashAlignment
whenEnforcedStyle: with_fixed_indentation
is specified forLayout/ArgumentAlignment
. (@koic
)- #10002: Fix an incorrect auto-correct for
Lint/AmbigousRegexpLiteral
when using nested method arguments without parentheses. (@koic
)- #9952 rubocop-rspec#1126: Fix
inherit_mode
for deeply nested configuration defined in extensions' default configuration. (@pirj
)- #9957: Add
WholeWord
configuration toNaming/InclusiveLanguage
'sFlaggedTerms
config. (@dvandersluis
)- #9970: Don't register an offense when sort method has arguments for
Style/RedundantSort
cop. (@mtsmfm
)- #4097: Add require English for special globals. (
@biinari
)- #9955: Fix
Style/ExplicitBlockArgument
adding a second set of parentheses. (@dvandersluis
)- #9973: Fix a false positive for
Layout/RescueEnsureAlignment
when alignedrescue
keyword and leading dot. (@koic
)- #9945: Fix auto-correction of lines in heredocs with only spaces in
Layout/TrailingWhitespace
. (@jonas054
)Changes
- #9989: Mark
Style/CommentedKeyword
as unsafe auto-correction. (@koic
)- #9964: Make
Layout/LeadingCommentSpace
aware of#:nodoc
. (@koic
)- #9985: Mark
Style/IdenticalConditionalBranches
as unsafe auto-correction. (@koic
)- #9962: Update
Style/WordArray
to register an offense inpercent
style if any values contain spaces. (@dvandersluis
)- #9979: Enable basic autocorrection for
Style/Semicolon
. (@dvandersluis
)
Changelog
Sourced from rubocop's changelog.
1.19.0 (2021-08-12)
New features
- #4182: Add
Lint/AmbiguousRange
cop to check for ranges with ambiguous boundaries. ([@dvandersluis
][])- #10000: Parallel static analysis by default. ([
@koic
][])- #9948: Support Ruby 2.7's pattern matching for
Style/ConditionalAssignment
cop. ([@koic
][])- #9999: Add new
Style/RedundantSelfAssignmentBranch
cop. ([@koic
][])Bug fixes
- #9927: Indent hash values in
Layout/LineEndStringConcatenationIndentation
. ([@jonas054
][])- #9959: Make
Style/IdenticalConditionalBranches
able to handle ternaryif
s. ([@dvandersluis
][])- #9946: Avoid slow regexp matches in
Style/CommentedKeyword
. ([@jonas054
][])- #7422: Treat constant assignment like other assignment in
Layout/SpaceAroundOperators
. ([@dvandersluis
][])- #9953: Fix an infinite loop error and a false auto-correction behavior for
Layout/EndAlignment
when using a conditional statement in a method argument. ([@koic
][])- #9958: Prevent an infinite loop when a detected method has fewer arguments than expected. ([
@dvandersluis
][])- #9977: Update
Layout/EmptyLineAfterGuardClause
to not register an offense if there is another expression following the guard clause on the same line. ([@dvandersluis
][])- #9980: Fix a false positive for
Style/IdenticalConditionalBranches
when assigning to a variable used in a condition. ([@koic
][])- #9975: Parentheses are always required for
Style/MethodDefParentheses
when a forwarding argument (...
) is used. ([@dvandersluis
][])- #9984: Fix false negatives involving heredocs for
Layout/SpaceBeforeComma
,Layout/SpaceBeforeComment
,Layout/SpaceBeforeSemicolon
andLayout/SpaceInsideParens
. ([@dvandersluis
][])- #9954: Fix infinite loop error for
Layout/HashAlignment
whenEnforcedStyle: with_fixed_indentation
is specified forLayout/ArgumentAlignment
. ([@koic
][])- #10002: Fix an incorrect auto-correct for
Lint/AmbigousRegexpLiteral
when using nested method arguments without parentheses. ([@koic
][])- #9952 rubocop-rspec#1126: Fix
inherit_mode
for deeply nested configuration defined in extensions' default configuration. ([@pirj
][])- #9957: Add
WholeWord
configuration toNaming/InclusiveLanguage
'sFlaggedTerms
config. ([@dvandersluis
][])- #9970: Don't register an offense when sort method has arguments for
Style/RedundantSort
cop. ([@mtsmfm
][])- #4097: Add require English for special globals. ([
@biinari
][])- #9955: Fix
Style/ExplicitBlockArgument
adding a second set of parentheses. ([@dvandersluis
][])- #9973: Fix a false positive for
Layout/RescueEnsureAlignment
when alignedrescue
keyword and leading dot. ([@koic
][])- #9945: Fix auto-correction of lines in heredocs with only spaces in
Layout/TrailingWhitespace
. ([@jonas054
][])Changes
- #9989: Mark
Style/CommentedKeyword
as unsafe auto-correction. ([@koic
][])- #9964: Make
Layout/LeadingCommentSpace
aware of#:nodoc
. ([@koic
][])- #9985: Mark
Style/IdenticalConditionalBranches
as unsafe auto-correction. ([@koic
][])- #9962: Update
Style/WordArray
to register an offense inpercent
style if any values contain spaces. ([@dvandersluis
][])- #9979: Enable basic autocorrection for
Style/Semicolon
. ([@dvandersluis
][])
Commits
-
a6d8d92
Cut 1.19.0 -
6d44d57
Update Changelog -
cda3f43
[Fix #9980] Fix a false positive forStyle/IdenticalConditionalBranches
-
6907fa3
[Fix #9962] UpdateStyle/WordArray
to register an offense inpercent
styl... -
2fd1221
[Fix #9973] Fix a false positive forLayout/RescueEnsureAlignment
-
b3f6e50
[Fix #4182] AddLint/AmbiguousRange
cop to check for ranges with ambiguous ... -
07c8ef8
Add newStyle/RedundantSelfAssignmentBranch
cop -
0d5d736
Add doc and test for about pattern matching forStyle/MissingElse
-
499b3f6
UpdateStyleGuide
URL forStyle/WhenThen
-
4363068
Update the doc forStyle/BlockDelimiters
- 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