dep-dev: bump rubocop from 1.30.1 to 1.31.1
Bumps rubocop from 1.30.1 to 1.31.1.
Release notes
Sourced from rubocop's releases.
RuboCop 1.31.1
Bug fixes
- #10763: Fix a false positive for
Layout/LineContinuationSpacing
when using continuation keyword\
after__END__
. (@koic
)- #10755: Fix a false positive for
Lint/LiteralAsCondition
when using a literal incase-in
condition where the match variable is used inin
are accepted as a pattern matching. (@koic
)- #10760: Fix a false positive for
Lint/NonAtomicFileOperation
when usingFileTest.exist?
withif
condition that haselse
branch. (@koic
)- #10745: Require JSON 2.3 or higher to fix an incompatible JSON API error. (
@koic
)- #10754: Fix an incorrect autocorrect for
Style/HashExcept
when using a non-literal collection receiver forinclude?
. (@koic
)- #10751: Fix autocorrect for Layout/FirstHashElementIndentation. (
@j-miyake
)- #10750: Recover 7x slow running
rubocop
. (@koic
)RuboCop 1.31
New features
- #10699: Add new global
ActiveSupportExtensionsEnabled
option. (@nobuyo
)- #10245: Add specification_version and rubygems_version to
Gemspec/DeprecatedAttributeAssignment
. ([@kaitielth
][])- #10696: Add new
Lint/NonAtomicFileOperation
cop. ([@ydah
][])- #6420: Add new
Layout/LineContinuationLeadingSpace
cop. ([@bquorning
][])- #6420: Add new
Layout/LineContinuationSpacing
cop. ([@bquorning
][])- #10706: Integrate rubocop-daemon to add server options. (
@koic
)- #10722: Add new
Lint/ConstantOverwrittenInRescue
cop. ([@ydah
][])Bug fixes
- #10700: Update
Style/EmptyMethod
to not correct if the correction would exceed the configuration forLayout/LineLength
. ([@dvandersluis
][])- #10698: Enhance
Style/HashExcept
to support array inclusion checks. (@nobuyo
)- #10734: Handle
ClobberingError
inStyle/NestedTernaryOperator
when there are multiple nested ternaries. ([@dvandersluis
][])- #10689: Fix autocorrect for
Layout/FirstHashElementIndentation
andLayout/FirstArrayElementIndentation
. (@j-miyake
)- Fix
rubocop -V
not displaying the version information for rubocop-graphql, rubocop-md and rubocop-thread_safety. ([@Darhazer
][])- #10711: Fix an error for
Style/MultilineTernaryOperator
when the false branch is on a separate line. (@koic
)- #10719: Fix a false positive for
Lint/ParenthesesAsGroupedExpression
when using safe navigation operator. (@koic
)- #10736: Fix Layout/SpaceInsideBlockBraces for blocks with numbered arguments. ([
@gsamokovarov
][])- #10749: Fix Style/BlockDelimiters for blocks with numbered arguments. ([
@gsamokovarov
][])- #10737: Fix crash in
Style/ConditionalAssignment
withEnforcedStyle: assign_inside_condition
when op-assigning a variable inside aresbody
. ([@dvandersluis
][])- #7900: Fix
Style/FormatStringToken
false positive with formatted input andtemplate
style enforced, and add autocorrection. ([@FnControlOption
][])Changes
- #10730: Change output timing of GitHubActionsFormatter. ([
@r7kamura
][])- #10709: Deprecate
rubocop:auto_correct
custom rake task and newly splitrubocop:autocorrect
andrubocop:autocorrect-all
custom rake tasks. (@koic
)- #9760: Change RangeHelp#range_with_surrounding_space to allow passing the range as a positional argument. ([
@pirj
][])- #10693: Add ignore case for
Style/EmptyLinesAroundAttributeAccessor
when there is a comment line on the next line. ([@ydah
][])- #10245: (Breaking) integrate
Gemspec/DateAssignment
intoGemspec/DeprecatedAttributeAssignment
. ([@kaitielth
][])- #10697: Restore
Lint/UselessElseWithoutRescue
cop. (@koic
)- #10740: Make
Style/GuardClause
a bit more lenient when the replacement would make the code more verbose. ([@dvandersluis
][])
... (truncated)
Changelog
Sourced from rubocop's changelog.
1.31.1 (2022-06-29)
Bug fixes
- #10763: Fix a false positive for
Layout/LineContinuationSpacing
when using continuation keyword\
after__END__
. ([@koic
][])- #10755: Fix a false positive for
Lint/LiteralAsCondition
when using a literal incase-in
condition where the match variable is used inin
are accepted as a pattern matching. ([@koic
][])- #10760: Fix a false positive for
Lint/NonAtomicFileOperation
when usingFileTest.exist?
withif
condition that haselse
branch. ([@koic
][])- #10745: Require JSON 2.3 or higher to fix an incompatible JSON API error. ([
@koic
][])- #10754: Fix an incorrect autocorrect for
Style/HashExcept
when using a non-literal collection receiver forinclude?
. ([@koic
][])- #10751: Fix autocorrect for Layout/FirstHashElementIndentation. ([
@j-miyake
][])- #10750: Recover 7x slow running
rubocop
. ([@koic
][])1.31.0 (2022-06-27)
New features
- #10699: Add new global
ActiveSupportExtensionsEnabled
option. ([@nobuyo
][])- #10245: Add specification_version and rubygems_version to
Gemspec/DeprecatedAttributeAssignment
. ([@kaitielth
][])- #10696: Add new
Lint/NonAtomicFileOperation
cop. ([@ydah
][])- #6420: Add new
Layout/LineContinuationLeadingSpace
cop. ([@bquorning
][])- #6420: Add new
Layout/LineContinuationSpacing
cop. ([@bquorning
][])- #10706: Integrate rubocop-daemon to add server options. ([
@koic
][])- #10722: Add new
Lint/ConstantOverwrittenInRescue
cop. ([@ydah
][])Bug fixes
- #10700: Update
Style/EmptyMethod
to not correct if the correction would exceed the configuration forLayout/LineLength
. ([@dvandersluis
][])- #10698: Enhance
Style/HashExcept
to support array inclusion checks. ([@nobuyo
][])- #10734: Handle
ClobberingError
inStyle/NestedTernaryOperator
when there are multiple nested ternaries. ([@dvandersluis
][])- #10689: Fix autocorrect for
Layout/FirstHashElementIndentation
andLayout/FirstArrayElementIndentation
. ([@j-miyake
][])- Fix
rubocop -V
not displaying the version information for rubocop-graphql, rubocop-md and rubocop-thread_safety. ([@Darhazer
][])- #10711: Fix an error for
Style/MultilineTernaryOperator
when the false branch is on a separate line. ([@koic
][])- #10719: Fix a false positive for
Lint/ParenthesesAsGroupedExpression
when using safe navigation operator. ([@koic
][])- #10736: Fix Layout/SpaceInsideBlockBraces for blocks with numbered arguments. ([
@gsamokovarov
][])- #10749: Fix Style/BlockDelimiters for blocks with numbered arguments. ([
@gsamokovarov
][])- #10737: Fix crash in
Style/ConditionalAssignment
withEnforcedStyle: assign_inside_condition
when op-assigning a variable inside aresbody
. ([@dvandersluis
][])- #7900: Fix
Style/FormatStringToken
false positive with formatted input andtemplate
style enforced, and add autocorrection. ([@FnControlOption
][])Changes
- #10730: Change output timing of GitHubActionsFormatter. ([
@r7kamura
][])- #10709: Deprecate
rubocop:auto_correct
custom rake task and newly splitrubocop:autocorrect
andrubocop:autocorrect-all
custom rake tasks. ([@koic
][])- #9760: Change RangeHelp#range_with_surrounding_space to allow passing the range as a positional argument. ([
@pirj
][])- #10693: Add ignore case for
Style/EmptyLinesAroundAttributeAccessor
when there is a comment line on the next line. ([@ydah
][])- #10245: (Breaking) integrate
Gemspec/DateAssignment
intoGemspec/DeprecatedAttributeAssignment
. ([@kaitielth
][])- #10697: Restore
Lint/UselessElseWithoutRescue
cop. ([@koic
][])- #10740: Make
Style/GuardClause
a bit more lenient when the replacement would make the code more verbose. ([@dvandersluis
][])
Commits
-
8fa156c
Cut 1.31.1 -
360a33e
Update Changelog -
32b3991
[Fix #10745] Fix an error when using old JSON gem -
5024054
[Fix #10763] Fix a false positive forLayout/LineContinuationSpacing
-
bcf90de
[Fix #10751] Fix autocorrect for Layout/FirstHashElementIndentation -
6e045fc
Merge pull request #10770 from koic/fix_build_errors_on_circleci -
f7935e5
Fix build errors on CircleCI -
27b0882
[Fix #10760] Fix a false positive forLint/NonAtomicFileOperation
-
f5b77c8
[Fix #10754] Fix an incorrect autocorrect forStyle/HashExcept
-
a3bc248
[Fix #10755] Fix a false positive forLint/LiteralAsCondition
- 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
Allure report
allure-report-publisher
generated test report!
rspec:
+------------------------------------------------------------------+
| behaviors summary |
+-------------+--------+--------+---------+-------+-------+--------+
| | passed | failed | skipped | flaky | total | result |
+-------------+--------+--------+---------+-------+-------+--------+
| services | 174 | 0 | 0 | 0 | 174 | ✅ |
| controllers | 25 | 0 | 0 | 0 | 25 | ✅ |
| jobs | 14 | 0 | 0 | 0 | 14 | ✅ |
| system | 10 | 0 | 0 | 0 | 10 | ✅ |
| models | 3 | 0 | 0 | 0 | 3 | ✅ |
| tasks | 8 | 0 | 0 | 0 | 8 | ✅ |
+-------------+--------+--------+---------+-------+-------+--------+
| Total | 234 | 0 | 0 | 0 | 234 | ✅ |
+-------------+--------+--------+---------+-------+-------+--------+
Edited by George Koltsov