#11467: Fix a false negative for Style/MethodCallWithoutArgsParentheses when calling method on a receiver and assigning to a variable with the same name. (@koic)
#11430: Fix an infinite loop error for Layout/BlockEndNewline when multiline blocks with newlines before the ; end. (@koic)
#11442: Fix a crash during anonymous rest argument forwarding. (@gsamokovarov)
#11447: Fix an incorrect autocorrect for Style/RedundantDoubleSplatHashBraces when using nested double splat hash braces. (@koic)
#11459: Make Lint/UselessRuby2Keywords aware of conditions. (@splattael)
#11415: Fix a false positive for Lint/UselessMethodDefinition when method definition contains rest arguments. (@koic)
#11418: Fix a false positive for Style/MethodCallWithArgsParentheses when using anonymous rest arguments or anonymous keyword rest arguments. (@koic)
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 (~> 0.60 → ~> 1.44) · Repo · Changelog
Release Notes
1.44.0
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 70 commits:
Cut 1.44
Update Changelog
Add `Gemspec/DevelopmentDependencies` cop
Add new `Style/InvertibleUnlessCondition` cop
Change to not output not configured warning when renamed and pending cop
Merge pull request #11480 from koic/fix_an_error_when_using_yaml_alias_with_server_mode
Merge pull request #11481 from koic/remove_sbsolete_code_for_psych
Remove obsolete code for Psych
[Fix #11477] Fix an error when using YAML alias with server mode
Fix an error for `Style/Semicolon`
[Fix #11350] Make `Lint/DeprecatedClassMethods` aware of deprecated `attr` method
Fix crash with `super value_omission:` followed by a method call
Update `Lint/Void` to suggest `each` in place of `map` or `collect` in void context.
Make `Style/Semicolon` aware of redundant semicolon in block
Add intentionally empty file to implicitly test cops on it
Merge pull request #11456 from gsamokovarov/fix-yield-value-omission
Add description to .pre-commit-hooks.yaml
[Fix #11467] Fix a false negative for `Style/MethodCallWithoutArgsParentheses`
Use `Corrector#swap` where possible
Merge pull request #11461 from koic/fix_an_error_for_style_operator_method_call
Merge pull request #11464 from ydah/fix-false-negative-lint-format-parameter-mismatch
Fix a false negative for `Lint/FormatParameterMismatch` when include interpolated string
Merge pull request #11459 from splattael/lint-useless-ruby2-keywords-condition
Make `Metrics/CyclomaticComplexity` aware of pattern matching
Merge pull request #11457 from koic/make_metrics_block_nesting_aware_of_pattern_matching
[Fix #11460] Fix an error for `Style/OperatorMethodCall`
Make `Lint/UselessRuby2Keywords` aware of conditions
Fix value omissions in `yield` invocations
Make `Metrics/BlockNesting` aware of pattern matching
[Fix #11444] Fix a false positive for `Lint/ShadowingOuterLocalVariable`
[Fix #11338] Add new `Style/ComparableClamp` cop
Merge pull request #11454 from fatkodima/redundant-todo
Merge pull request #11453 from fatkodima/argument_type-from-ast
Remove stale TODO
Use `Node#argument_type?` from `rubocop-ast`
Merge pull request #11449 from koic/fix_an_incorrect_autocorrect_for_style_block_delimiters
Fix a build error
Make `InternalAffairs/RedundantLetRuboCopConfigNew` aware of a redundant `let`
Merge pull request #11422 from koic/fix_a_false_positive_for_style_redundant_require_statemen
[Fix #11445] Fix an incorrect autocorrect for `Style/BlockDelimiters`
Make default indentation consistent
Merge pull request #11447 from koic/fix_incorrect_autocorrect_for_style_redundant_double_splat_hash_braces
Fix an incorrect autocorrect for `Style/RedundantDoubleSplatHashBraces`
Fix an error for `Style/AccessModifierDeclarations`
Merge pull request #11440 from ydah/fix/11439
Merge pull request #11442 from gsamokovarov/fix-method-args-forwarding-crash
Fix a crash during anonymous rest argument forwarding
[Fix #11439] Fix an incorrect autocorrect for `Style/MinMaxComparison` when using `a < b a : b` with `elsif/else`
[Fix #11419] Fix a false positive for `Style/RedundantRequireStatement`
Fix a crash in Style/HashSyntax
[Fix #11434] Remove an erroneous `@api private` mark
Merge pull request #11435 from fatkodima/changelog-entry-length
Increase generated changelog entry's length
Merge pull request #11433 from koic/fix_an_infinite_loop_error_for_layout_block_end_newline
[Fix #11430] Fix an infinite loop error for `Layout/BlockEndNewline`
Merge pull request #11428 from gsamokovarov/value-omission-in-super
Merge pull request #11424 from koic/fix_a_false_positive_for_style_method_call_with_args_parentheses
Merge pull request #11417 from koic/fix_a_false_positive_for_lint_useless_method_definition
Merge pull request #11423 from koic/fix_a_false_positive_for_lint_useless_rescue
Apply value omission exceptions in super invocations
Merge pull request #11425 from krishanbhasin-shopify/kb/void-cop-spots-methods-that-take-blocks
Void context cop marks offense on nonmutating method that takes block
Merge pull request #11414 from koic/revert_github_actions_concurrency
Apply concurrency for GHA workflow `pull_requests` envents only
[Fix #11418] Fix a false positive for `Style/MethodCallWithArgsParentheses`
[Fix #11420] Fix a false positive for `Lint/UselessRescue`
Merge pull request #11388 from FnControlRuby/correction
Improve error messages for `expect_correction`.
[Fix #11415] Fix a false positive for `Lint/UselessMethodDefinition`
Switch back to dev version
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