dep-dev: bump rubocop from 1.29.1 to 1.30.0
Bumps rubocop from 1.29.1 to 1.30.0.
Release notes
Sourced from rubocop's releases.
RuboCop 1.30
New features
- #10065: Add new
Gemspec/DeprecatedAttributeAssignment
cop. (@koic
)- #10608: Add new
Style/MapCompactWithConditionalBlock
cop. (@nobuyo
)- #10627: Add command-line option
--ignore-unrecognized-cops
to ignore any unknown cops or departments in .rubocop.yml. (@nobuyo
)- #10620: Add Sorbet's
typed
sigil as a magic comment. (@zachahn
)Bug fixes
- #10662: Recover Ruby 2.1 code analysis using
TargetRubyVersion: 2.1
. (@koic
)- #10396: Fix autocorrect for
Layout/IndentationWidth
to leave module/class body unchanged to avoid infinite autocorrect loop withLayout/IndentationConsistency
when body trails after class/module definition. (@johnny-miyake
)- #10636: Fix false positive in
Style/RedundantCondition
when the branches call the same method on different receivers. (@dvandersluis
)- #10651: Fix autocorrect for
Style/For
when using array with operator methods as collection. (@nobuyo
)- #10629: Fix default Ruby version from 2.5 to 2.6. (
@koic
)- #10661: Fix a false negative for
Style/SymbolProc
when method has no arguments andAllowMethodsWithArguments: true
. (@koic
)- #10631: Fix autocorrect for
Style/RedundantBegin
. (@johnny-miyake
)- #10652: Fix a false positive for
Style/FetchEnvVar
in conditions. (@ydah
)- #10665: Fix an incorrect autocorrect for
EnforcedStyle: with_first_argument
ofLayout/ArgumentAlignment
andEnforcedColonStyle: separator
ofLayout/HashAlignment
. (@koic
)- #10258: Recover Ruby 2.4 code analysis using
TargetRubyVersion: 2.4
. (@koic
)- #10668: Recover Ruby 2.0 code analysis using
TargetRubyVersion: 2.0
. (@koic
)- #10644: Recover Ruby 2.2 code analysis using
TargetRubyVersion: 2.2
. (@koic
)- #10639: Fix
Style/HashSyntax
to exclude files that violate it withEnforceHashShorthandSyntax
when runningauto-gen-config
. (@nobuyo
)- #10633: Fix infinite autocorrection loop in
Style/AccessorGrouping
when combining multiple of the same accessor. (@dvandersluis
)- #10618: Fix
LineBreakCorrector
so that it won't remove a semicolon in the class/module body. (@johnny-miyake
)- #10646: Fix an incorrect autocorrect for
Style/SoleNestedConditional
when usingunless
and&&
without parens in the outer condition and nested modifier condition. (@koic
)- #10659: Fix automatically appended path for
inherit_from
byauto-gen-config
is incorrect if specified config file in a subdirectory as an option. (@nobuyo
)- #10640: Recover Ruby 2.3 code analysis using
TargetRubyVersion: 2.3
. (@koic
)- #10657: Fix
--auto-gen-config
command option ignores specified config file by option. (@nobuyo
)Changes
- #10095: Change "auto-correct" to "autocorrect" in arguments, documentation, messages, comments, and specs. (
@chris-hewitt
)- #10656: Mark
Style/RedundantInterpolation
as unsafe autocorrection. (@koic
)- #10616: Markdown formatter: skip files with no offenses. (
@rickselby
)
Changelog
Sourced from rubocop's changelog.
1.30.0 (2022-05-26)
New features
- #10065: Add new
Gemspec/DeprecatedAttributeAssignment
cop. ([@koic
][])- #10608: Add new
Style/MapCompactWithConditionalBlock
cop. ([@nobuyo
][])- #10627: Add command-line option
--ignore-unrecognized-cops
to ignore any unknown cops or departments in .rubocop.yml. ([@nobuyo
][])- #10620: Add Sorbet's
typed
sigil as a magic comment. ([@zachahn
][])Bug fixes
- #10662: Recover Ruby 2.1 code analysis using
TargetRubyVersion: 2.1
. ([@koic
][])- #10396: Fix autocorrect for
Layout/IndentationWidth
to leave module/class body unchanged to avoid infinite autocorrect loop withLayout/IndentationConsistency
when body trails after class/module definition. ([@johnny-miyake
][])- #10636: Fix false positive in
Style/RedundantCondition
when the branches call the same method on different receivers. ([@dvandersluis
][])- #10651: Fix autocorrect for
Style/For
when using array with operator methods as collection. ([@nobuyo
][])- #10629: Fix default Ruby version from 2.5 to 2.6. ([
@koic
][])- #10661: Fix a false negative for
Style/SymbolProc
when method has no arguments andAllowMethodsWithArguments: true
. ([@koic
][])- #10631: Fix autocorrect for
Style/RedundantBegin
. ([@johnny-miyake
][])- #10652: Fix a false positive for
Style/FetchEnvVar
in conditions. ([@ydah
][])- #10665: Fix an incorrect autocorrect for
EnforcedStyle: with_first_argument
ofLayout/ArgumentAlignment
andEnforcedColonStyle: separator
ofLayout/HashAlignment
. ([@koic
][])- #10258: Recover Ruby 2.4 code analysis using
TargetRubyVersion: 2.4
. ([@koic
][])- #10668: Recover Ruby 2.0 code analysis using
TargetRubyVersion: 2.0
. ([@koic
][])- #10644: Recover Ruby 2.2 code analysis using
TargetRubyVersion: 2.2
. ([@koic
][])- #10639: Fix
Style/HashSyntax
to exclude files that violate it withEnforceHashShorthandSyntax
when runningauto-gen-config
. ([@nobuyo
][])- #10633: Fix infinite autocorrection loop in
Style/AccessorGrouping
when combining multiple of the same accessor. ([@dvandersluis
][])- #10618: Fix
LineBreakCorrector
so that it won't remove a semicolon in the class/module body. ([@johnny-miyake
][])- #10646: Fix an incorrect autocorrect for
Style/SoleNestedConditional
when usingunless
and&&
without parens in the outer condition and nested modifier condition. ([@koic
][])- #10659: Fix automatically appended path for
inherit_from
byauto-gen-config
is incorrect if specified config file in a subdirectory as an option. ([@nobuyo
][])- #10640: Recover Ruby 2.3 code analysis using
TargetRubyVersion: 2.3
. ([@koic
][])- #10657: Fix
--auto-gen-config
command option ignores specified config file by option. ([@nobuyo
][])Changes
- #10095: Change "auto-correct" to "autocorrect" in arguments, documentation, messages, comments, and specs. ([
@chris-hewitt
][])- #10656: Mark
Style/RedundantInterpolation
as unsafe autocorrection. ([@koic
][])- #10616: Markdown formatter: skip files with no offenses. ([
@rickselby
][])
Commits
-
3fd4828
Cut 1.30 -
f14c944
Update Changelog -
5eef8fa
[Fix #10652] Fix a false positive forStyle/FetchEnvVar
in conditions -
faa98e3
[Fix #10665] Fix an incorrect autocorrect forLayout/ArgumentAlignment
-
91b7573
[Fix #10659] Fix automatically appended path forinherit_from
by `auto-gen-... -
825b758
Add a reproduction test to autocorrect_spec.rb -
8396e08
[Fix #10396] Fix autocorrect forLayout/IndentationWidth
to leave module/cl... -
0e8d924
Add newStyle/MapCompactWithConditionalBlock
cop -
a4c197c
Recover Ruby 2.0 code analysis usingTargetRubyVersion: 2.0
-
bfe86b1
Merge pull request #10667 from ydah/fix_typo - 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 | 170 | 0 | 0 | 0 | 170 | ✅ |
| controllers | 25 | 0 | 0 | 0 | 25 | ✅ |
| jobs | 14 | 0 | 0 | 0 | 14 | ✅ |
| models | 3 | 0 | 0 | 0 | 3 | ✅ |
| tasks | 8 | 0 | 0 | 0 | 8 | ✅ |
| system | 10 | 0 | 0 | 0 | 10 | ✅ |
+-------------+--------+--------+---------+-------+-------+--------+
| Total | 230 | 0 | 0 | 0 | 230 | ✅ |
+-------------+--------+--------+---------+-------+-------+--------+
Edited by George Koltsov