[src/api] Update rubocop 1.67.0 → 1.68.0 (minor) #17048
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.
What changed?
✳️ rubocop (1.67.0 → 1.68.0) · Repo · Changelog
Release Notes
1.68.0
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 71 commits:
Cut 1.68
Update Changelog
[Fix #12140] Add new `Style/CombinableDefined` cop.
Fix a false negative for `Style/RedundantLineContinuation`
Merge pull request #13400 from Earlopain/offense-cop-name-docs
Fix docs for `Offense.cop_name`
Fix deserialization of unknown encoding offenses
[Fix #13387] Fix false positives for `Style/RedundantParentheses`
Merge pull request #13399 from dvandersluis/fix-and-offense-typo
Fix typos `and offense` instead of `an offense`.
Merge pull request #13397 from dvandersluis/percent-literal-corrector-brace-pairs
Update `PercentLiteralCorrector` to be able to write pairs of delimiters without excessive escaping.
Merge pull request #13393 from koic/fix_false_positives_for_style_guard_clause
[Fix #13390] Fix false positives for `Style/GuardClause`
Merge pull request #13325 from kotaro0522/fix_the_autocorrect_of_non_atomic_file_operation
Merge pull request #13389 from pCosta99/issue/13309
Use RuboCop RSpec 3.2 for development
Fix the autocorrect of non_atomic_file_operation
[Fix #13309] Fix false negative for Lint/UselessAssignment
Merge pull request #13388 from Earlopain/generate-docs-2.7
Fix another error for the documentation generator on Ruby 2.7
Add new `Style/SafeNavigationChainLength` cop
Merge pull request #13386 from dvandersluis/fix-unescaped-bracket-in-regexp-docs
Fix documentation for `Lint/UnescapedBracketInRegexp`.
[Fix #11514] Add new `Lint/UnescapedBracketInRegexp` cop.
Handle error in extractors when the extractor is a class
Fix a wrongly memoized method in `VariableForce`
Merge pull request #13381 from dvandersluis/issue/13378
[Fix #13378] When removing parens in `Style/TernaryParentheses` with a `send` node condition, ensure its arguments are parenthesized.
Merge pull request #13375 from dvandersluis/issue/13374
Merge pull request #13379 from Earlopain/ruby-3.4-stringio
Fix an error when running with Ruby 3.4-dev
Merge pull request #13370 from dvandersluis/issue/13364
[Fix #13374] Return exit code 0 with `--display-only-correctable` and `--display-only-safe-correctable` when no offenses are displayed.
[Fix #13365] Fix false positives for `Lint/SafeNavigationConsistency`
[Fix #13364] Fix incorrect autocorrect with `Lint/UselessAssignment` a multiple assignment or `for` contains an inner assignment.
Fix an incorrect issue number
Merge pull request #13369 from koic/fix_an_incorrect_autocorrect_for_naming_block_forwarding
[Fix #13368] Fix an incorrect autocorrect for `Naming/BlockForwarding`
Merge pull request #13363 from masato-bkn/fix-cyclomatic-complexity-doc
[Doc] Fix the broken example in the `Metrics/CyclomaticComplexity` document
Fix false positive in `Style/MultipleComparison` when `ComparisonsThreshold` exceeds 2
Add new `IgnoreDuplicateElseBranch` option to `Lint/DuplicateBranch`
Merge pull request #13255 from vlad-pisanov/vp_map_into_array_3
[Fix #13050] Add new `Style/BitwisePredicate` cop
Fix false negatives for `Style/MapIntoArray` when using non-splatted arguments
Merge pull request #13362 from vlad-pisanov/vp_redundant_freeze_1
Fix false positives for `Style/RedundantInterpolationUnfreeze` and `Style/RedundantFreeze` when strings contain interpolated global, instance, and class variables
Add AllowSteepAnnotation option to Layout/LeadingCommentSpace
Merge pull request #13355 from koic/fix_incorrect_autocorrect_for_style_block_delimiters_cop
Merge pull request #13358 from Earlopain/false-positive-space-before-brackets
[Fix #13356] Fix a false positive for `Layout/SpaceBeforeBrackets` when there is a dot before `[]=`
[Fix #13353] Fix an incorrect autocorrect for `Style/BlockDelimiters`
Add style guide URL to `Style/AmbiguousEndlessMethodDefinition`
[Fix #12988] Add new `Style/AmbiguousEndlessMethodDefinition` cop.
Add a basic test for the docs generator
[Fix #13336] Update `Style/SafeNavigation` to not autocorrect if the RHS of an `and` node is an `or` node.
[Fix #13324] Fix `--disable-uncorrectable` to not insert a comment inside a string continuation.
Show Ruby version of the current dir for `rubocop -V`
Clearly distinguish between the version string and verbose version output
Merge pull request #13349 from dvandersluis/block-delim-bug
[Fix #13348] Ensure `Style/BlockDelimiters` autocorrection does not move other code between the block and comment.
Merge pull request #13345 from dvandersluis/issue/13343
[Fix #13343] Prevent `Layout/LineLength` from breaking up a method with arguments chained onto a heredoc delimiter.
Merge pull request #13342 from koic/fix_false_positves_for_lint_safe_navigation_chain
[Fix #13341] Fix false positives for `Lint/SafeNavigationChain`
[Fix #13337] Fix false positives for `Style/RedundantLineContinuation`
Add new `Style/KeywordArgumentsMerging` cop
Merge pull request #13333 from Earlopain/server-cli-specs
Fix test failures caused by changes to the rubocop version
Reset the docs version
Commits
See the full diff on Github. The new version differs by 5 commits:
Update changelog.
Bump version.
* Bump maintenance branches to 3.2.6 (#1044)
Update my name and copyright.
Update changelog.
Release Notes
1.33.0 (from changelog)
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 14 commits:
Cut 1.33.0
Update Changelog
Add classes for `masgn` and `mlhs` nodes.
Add `VarNode` class for `lvar`, `ivar`, `cvar` and `gvar` node types.
Refactor `CasgnNode` and `ConstNode` to extract common functionality to `ConstantNode` mixin.
Fix warning when executing `rubocop` with `bundle exec`
Enhance rake debug tasks
Document named captures
Fix RuboCop offense (#321)
Remove useless "&". Thanks @dvandersluis
Use Prism 1.1+
Suppress RuboCop offenses
Bump `simplecov` (#316)
Restore docs/antora.yml
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