dep: bump rubocop from 1.37.1 to 1.38.0
Bumps rubocop from 1.37.1 to 1.38.0.
Release notes
Sourced from rubocop's releases.
RuboCop 1.38
New features
- #11110: Add new
Style/RedundantEach
cop. (@koic
)- #10255: Add simple autocorrect for
Style/GuardClause
. (@FnControlOption
)- #11126: Have
Lint/RedundantRequireStatement
markset
as a redundant require in Ruby 3.2+. (@drenmi
)- #11001: Add option to raise cop errors
--raise-cop-error
. (@wildmaples
)- #10987: Opt-in cop compatibility in redundant directives. (
@tdeo
)Bug fixes
- #11125: Fix an error for
Layout/SpaceInsideHashLiteralBraces
when using method argument that both key and value are hash literals. (@koic
)- #11132: Fix clobbering error on
Lint/EmptyConditionalBody
. (@r7kamura
)- #11117: Fix a false positive for
Style/BlockDelimiters
when specifyingEnforcedStyle: semantic
and using a single line block with {} followed by a safe navigation method call. (@koic
)- #11120: Fix an incorrect autocorrect for
Lint/RedundantRequireStatement
when using redundantrequire
with modifier form. (@koic
)Changes
- #11131: Check newline in empty reference bracket on
Layout/SpaceInsideReferenceBrackets
. (@r7kamura
)- #11045: Update the
Style/ModuleFunction
documentation to suggestclass << self
as an alternative. (@rdeckard
)- #11006: Allow multiple
elsif
forStyle/IfWithBooleanLiteralBranches
. (@koic
)- #11113: Report the count of files in the Worst and the Offense Count formatters. (
@hosamaly
)
Changelog
Sourced from rubocop's changelog.
1.38.0 (2022-11-01)
New features
- #11110: Add new
Style/RedundantEach
cop. ([@koic
][])- #10255: Add simple autocorrect for
Style/GuardClause
. ([@FnControlOption
][])- #11126: Have
Lint/RedundantRequireStatement
markset
as a redundant require in Ruby 3.2+. ([@drenmi
][])- #11001: Add option to raise cop errors
--raise-cop-error
. ([@wildmaples
][])- #10987: Opt-in cop compatibility in redundant directives. ([
@tdeo
][])Bug fixes
- #11125: Fix an error for
Layout/SpaceInsideHashLiteralBraces
when using method argument that both key and value are hash literals. ([@koic
][])- #11132: Fix clobbering error on
Lint/EmptyConditionalBody
. ([@r7kamura
][])- #11117: Fix a false positive for
Style/BlockDelimiters
when specifyingEnforcedStyle: semantic
and using a single line block with {} followed by a safe navigation method call. ([@koic
][])- #11120: Fix an incorrect autocorrect for
Lint/RedundantRequireStatement
when using redundantrequire
with modifier form. ([@koic
][])Changes
- #11131: Check newline in empty reference bracket on
Layout/SpaceInsideReferenceBrackets
. ([@r7kamura
][])- #11045: Update the
Style/ModuleFunction
documentation to suggestclass << self
as an alternative. ([@rdeckard
][])- #11006: Allow multiple
elsif
forStyle/IfWithBooleanLiteralBranches
. ([@koic
][])- #11113: Report the count of files in the Worst and the Offense Count formatters. ([
@hosamaly
][])
Commits
-
52a56f0
Cut 1.38 -
c87ed48
Update Changelog -
d984482
Set whitespace-line-column to 100 in .dir-locals.el -
e423552
Fix the CI build -
360f043
Improve Style/IfWithBooleanLiteralBranches's documentation -
6e910eb
[Fix #11006] Allow multipleelsif
forStyle/IfWithBooleanLiteralBranches
-
c4b2bb1
Use broken vertical bar as adoc table separator -
41a8249
Tweak wording -
72f8c69
Update theStyle/ModuleFunction
documentation to suggestclass << self
as... -
06cacae
[Fix #11120] Fix an incorrect autocorrect forLint/RedundantRequireStatement
- 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 |
+-------------+--------+--------+---------+-------+-------+--------+
| jobs | 14 | 0 | 0 | 0 | 14 | ✅ |
| services | 181 | 0 | 0 | 0 | 181 | ✅ |
| controllers | 25 | 0 | 0 | 0 | 25 | ✅ |
| tasks | 9 | 0 | 0 | 0 | 9 | ✅ |
| models | 4 | 0 | 0 | 0 | 4 | ✅ |
| system | 10 | 0 | 0 | 0 | 10 | ✅ |
+-------------+--------+--------+---------+-------+-------+--------+
| Total | 243 | 0 | 0 | 0 | 243 | ✅ |
+-------------+--------+--------+---------+-------+-------+--------+
Edited by George Koltsov