#10500: Add new Lint/RefinementImportMethods cop. (@koic)
#10438: Add new Style/RedundantInitialize cop to check for unnecessary initialize methods. (@dvandersluis)
Bug fixes
#10464: Fix an incorrect autocorrect for Lint/IncompatibleIoSelectWithFiberScheduler when using IO.select with read (or write) argument and using return value. (@koic)
#10506: Fix an error for Style/RaiseArgs when raise with new method without receiver. (@koic)
#10479: Fix a false positive for Lint/ShadowingOuterLocalVariable conditional statement and block variable. (@ydah)
#10189: Fix --display-style-guide so it works together with --format offenses. (@jonas054)
#10465: Fix false positive for Naming/BlockForwarding when the block argument is assigned. (@dvandersluis)
#10491: Improve the handling of comments in Lint/EmptyConditionalBody, Lint/EmptyInPattern and Lint/EmptyWhen when AllowComments is set to true. (@Darhazer)
#10504: Fix a false positive for Lint/UnusedMethodArgument when using raise NotImplementedError with optional arguments. (@koic)
#10494: Fix a false positive for Style/HashSyntax when return with one line if condition follows (without parentheses). (@koic)
#10311: Fix false negative inside do..end for Layout/RedundantLineBreak. (@jonas054)
#10468: Fix a false positive for Style/FileWrite when a splat argument is passed to f.write. (@koic)
#10474: Fix a false positive for Style/DoubleNegation with EnforcedStyle: allowed_in_returns when inside returned conditional clauses. (@ydah)
#10388: Fix an incorrectly adds a disable statement for Layout/SpaceInsideArrayLiteralBrackets with --disable-uncorrectable. (@ydah)
#10489: Fix a false positive for Lint/LambdaWithoutLiteralBlock when using lambda with a symbol proc. (@koic)
Changes
#10191: Add MaxChainLength option to Style/SafeNavigation and the option is 2 by default. (@ydah)
Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.
All Depfu comment commands
@depfu rebase
Rebases against your default branch and redoes this update
@depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@depfu close
Closes this PR and deletes the branch
@depfu reopen
Restores the branch and reopens this PR (if it's closed)
@depfu pause
Ignores all future updates for this dependency and closes this PR
@depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)
Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.
What changed?
✳️ rubocop (~> 1.26.0 → ~> 1.27.0) · Repo · Changelog
Release Notes
1.27.0
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 31 commits:
Cut 1.27.0
Update Changelog
[Fix #10191] Add `MaxChainLength` option to `Style/SafeNavigation` (#10508)
[Fix #10506] Fix an error for `Style/RaiseArgs`
[Fix #10504] Fix a false positive for `Lint/UnusedMethodArgument`
Add new `Lint/RefinementImportMethods` cop
Resolve realpath of the home directory
[Fix #10189] Support --display-style-guide with -f offenses
[Fix #10388] Fix an incorrectly adds a disable statement for `Layout/SpaceInsideArrayLiteralBrackets` with `--disable-uncorrectable`
[Fix #10489] Fix a false positive for `Lint/LambdaWithoutLiteralBlock`
Merge pull request #10497 from koic/fix_a_false_positive_for_style_hash_syntax
Merge pull request #10491 from rubocop/improve-comment-handling
[Fix #10494] Fix a false positive for `Style/HashSyntax`
[Fix #7999] Consider only the comments relevant for the node being checked
Merge pull request #10492 from rubocop/fix-useless-method-definition-config
Remove obsolete AllowComments option
Tweak offense messages for `Lint/AmbiguousOperator`
Merge pull request #10484 from ydah/fix-shadowing-outer-local-variable-conditional-statement
[Fix #10464] Fix an incorrect autocorrect for `Lint/IncompatibleIoSelectWithFiberScheduler`
[Fix #10468] Fix a false positive for `Style/FileWrite`
Auto-correct previously undiscovered offenses
[Fix #10311] Expand send nodes correctly
[Fix #10438] Add new `Style/RedundantInitialize` cop to check for unnecessary `initialize` methods.
[Fix #10479] Fix a false positive for `Lint/ShadowingOuterLocalVariable` conditional statement and block variable
Merge pull request #10477 from ydah/fix-double-negation-allowed-in-returns
[Fix #10474] Fix a false positive for `Style/DoubleNegation` with `EnforcedStyle: allowed_in_returns` when inside returned conditional clauses
Fix obsolete department checker
Merge pull request #10466 from dvandersluis/issue/10465
[Fix #10465] Fix false positive for `Naming/BlockForwarding` when the block argument is redefined.
Switch back the docs version
Fix a build error
Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with
@depfu rebase
.All Depfu comment commands