#10820: Add new Style/EmptyHeredoc cop. ([@koic][])
#10691: Add new Layout/MultilineMethodParameterLineBreaks cop. ([@Korri][])
#10790: Support AllowComments option for Style/EmptyElse. ([@ydah][])
#10792: Add new Lint/RequireRangeParentheses cop. ([@koic][])
#10692: Break long method definitions when auto-correcting. ([@Korri][])
Bug fixes
#10824: Make Lint/DeprecatedClassMethods aware of ENV.clone and ENV.dup. ([@koic][])
#10788: Relax Style/FetchEnvVar to allow ENV[] in LHS of ||. ([@j-miyake][])
#10813: Fix recursive deletion to suppression in Lint/NonAtomicFileOperation. ([@ydah][])
#10791: Fix an incorrect autocorrect for Style/Semicolon when using endless range before semicolon. ([@koic][])
#10781: Fix a suggestions for safer conversions for Lint/NonAtomicFileOperation. ([@ydah][])
#10263: Fix the value of Enabled leaking between configurations. ([@jonas054][])
Changes
#10613: Allow autocorrecting with -P/--parallel and make it the default. ([@jonas054][])
Add EnforcedStyle (leading/trailing) configuration to Layout::LineContinuationLeadingSpace. ([@bquorning][])
#10784: Preserve multiline semantics on Style/SymbolArray and Style/WordArray. ([@r7kamura][])
#10814: Avoid buffering stdout when running in server mode. ([@ccutrer][])
#10817: Add autocorrect support for Style/SafeNavigationChain. ([@r7kamura][])
#10810: Support safe navigation operator on Style/SymbolProc. ([@r7kamura][])
#10803: Require RuboCop AST 1.9.1 or higher. ([@koic][])
1.31.2 (2022-07-07)
Bug fixes
#10774: Fix false negatives in Style/DocumentationMethod when a public method is defined after a private one. ([@Darhazer][])
#10764: Fix performance issue for Layout/FirstHashElementIndentation and Layout/FirstArrayElementIndentation. ([@j-miyake][])
#10780: Fix an error when using rubocop:auto_correct deprecated custom rake task. ([@koic][])
#10786: Fix a false positive for Lint/NonAtomicFileOperation when using complex conditional. ([@koic][])
#10785: Fix a false negative for Style/RedundantParentheses when parens around a receiver of a method call with an argument. ([@koic][])
#10026: Fix merging of array parameters in either parent of default config. ([@jonas054][])
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 in case-in condition where the match variable is used in in are accepted as a pattern matching. ([@koic][])
#10760: Fix a false positive for Lint/NonAtomicFileOperation when using FileTest.exist? with if condition that has else 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 for include?. ([@koic][])
#10751: Fix autocorrect for Layout/FirstHashElementIndentation. ([@j-miyake][])
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)
Bumps rubocop from 1.28.2 to 1.32.0.
Release notes
Sourced from rubocop's releases.
... (truncated)
Changelog
Sourced from rubocop's changelog.
... (truncated)
Commits
08fd23a
Cut 1.322f9a4d0
Update Changelogdd11b7b
[Fix #10788] RelaxStyle/FetchEnvVar
to allowENV[]
in LHS of||
0124f73
[Fix rubocop#10813] Fix recursive deletion to suppression in `Lint/NonAtomicF...2f8d8c7
Merge pull request #10824 from koic/make_lint_deprecated_class_methods_aware_...a6bc607
MakeLint/DeprecatedClassMethods
aware ofENV.clone
andENV.dup
2c4215f
Add newStyle/EmptyHeredoc
cop992019e
Merge pull request #10814 from ccutrer/server-fast-stdout997d66f
[Doc] Syntax highlight for CONTRIBUTING.md83893ce
Add autocorrect support forStyle/SafeNavigationChain
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)