deps-dev: bump rubocop from 1.37.1 to 1.38.0
Created by: dependabot[bot]
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 will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)