#13401: Fix a false negative for Style/RedundantLineContinuation when there is a line continuation at the EOF. (@koic)
#13368: Fix an incorrect autocorrect for Naming/BlockForwarding with Style/ExplicitBlockArgument. (@koic)
#13391: Fix deserialization of unknown encoding offenses. (@earlopain)
#13348: Ensure Style/BlockDelimiters autocorrection does not move other code between the block and comment. (@dvandersluis)
#13382: Fix an error during error handling for custom ruby extractors when the extractor is a class. (@earlopain)
#13309: Fix a false negative for Lint/UselessAssignment cop when there is a useless assignment followed by a block. (@pCosta99)
#13255: Fix false negatives for Style/MapIntoArray when using non-splatted arguments. (@vlad-pisanov)
#13356: Fix a false positive for Layout/SpaceBeforeBrackets when there is a dot before []=. (@earlopain)
#13365: Fix false positives for Lint/SafeNavigationConsistency when using safe navigation on the LHS with operator method on the RHS of &&. (@koic)
#13390: Fix false positives for Style/GuardClause when using a local variable assigned in a conditional expression in a branch. (@koic)
#13337: Fix false positives for Style/RedundantLineContinuation when required line continuations for && is used with an assignment after a line break. (@koic)
#13387: Fix false positives in Style/RedundantParentheses when parentheses are used around method chain with do...end block in keyword argument. (@koic)
#13341: Fix false positives for Lint/SafeNavigationChain when a safe navigation operator is used with a method call as the RHS operand of && for the same receiver. (@koic)
#13324: Fix --disable-uncorrectable to not insert a comment inside a string continuation. (@dvandersluis)
#13364: Fix incorrect autocorrect with Lint/UselessAssignment a multiple assignment or for contains an inner assignment. (@dvandersluis)
#13353: Fix an incorrect autocorrect for Style/BlockDelimiters when EnforcedStyle: semantic is set and used with Layout/SpaceInsideBlockBraces. (@koic)
#13361: Fix false positives for Style/RedundantInterpolationUnfreeze and Style/RedundantFreeze when strings contain interpolated global, instance, and class variables. (@vlad-pisanov)
#13343: Prevent Layout/LineLength from breaking up a method with arguments chained onto a heredoc delimiter. (@dvandersluis)
#13374: Return exit code 0 with --display-only-correctable and --display-only-safe-correctable when no offenses are displayed. (@dvandersluis)
#13193: Fix false positive in Style/MultipleComparison when ComparisonsThreshold exceeds 2. (@fatkodima,@vlad-pisanov)
#13325: Fix an incorrect autocorrect for Lint/NonAtomicFileOperation when using a postfix unless for file existence checks before creating a file, in cases with Dir.mkdir. (@kotaro0522)
#13397: Update PercentLiteralCorrector to be able to write pairs of delimiters without excessive escaping. (@dvandersluis)
#13336: Update Style/SafeNavigation to not autocorrect if the RHS of an and node is an or node. (@dvandersluis)
#13378: When removing parens in Style/TernaryParentheses with a send node condition, ensure its arguments are parenthesized. (@dvandersluis)
Changes
#13347: When running rubocop -V, show the analysis Ruby version of the current directory. (@earlopain)
Emit a deprecation warning when JSON.load create custom types without the create_additions option being explictly enabled.
Prefer to use JSON.unsafe_load(string) or JSON.load(string, create_additions: true).
Emit a deprecation warning when serializing valid UTF-8 strings encoded in ASCII_8BIT aka BINARY.
Bump required Ruby version to 2.7.
Add support for optionally parsing trailing commas, via allow_trailing_comma: true, which in cunjunction with the
pre-existing support for comments, make it suitable to parse jsonc documents.
Many performance improvements to JSON.parse and JSON.load, up to 1.7x faster on real world documents.
Some minor performance improvements to JSON.dump and JSON.generate.
#339: Do not emit a deprecation warning for EnsureNode#body to give RuboCop a chance to update its usage. EnsureNode#body will still be changed in the next major version of rubocop-ast. (@earlopain)
1.36.0 (from changelog)
Changes
#337: Deprecate EnsureNode#body in favour of EnsureNode#branch. EnsureNode#body will be redefined in the next major version of rubocop-ast. (@dvandersluis)
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 cancel merge
Cancels automatic merging of this PR
@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 update. Please take a good look at what changed and the test results before merging this pull request.
What changed?
✳️ rubocop-performance (1.22.1 → 1.23.0) · Repo · Changelog
Release Notes
1.23.0
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 7 commits:
Cut 1.23.0
Update Changelog
Merge pull request #474 from viralpraxis/add-new-cop-performance-string-bytesize
[Fix #475] Add new `Performance/StringBytesize` cop
Suppress new RuboCop offenses
Use RuboCop RSpec 3.1
Switch back docs version to master
✳️ 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
↗️ json (indirect, 2.7.4 → 2.8.2) · Repo · Changelog
Release Notes
2.8.2
2.8.1
2.8.0
2.7.6
2.7.5
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by more commits than we can show here.
↗️ parser (indirect, 3.3.5.0 → 3.3.6.0) · Repo · Changelog
Release Notes
3.3.6.0 (from changelog)
3.3.5.1 (from changelog)
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 9 commits:
Update changelog.
Bump version.
* Bump maintenance branches to 3.3.6 (#1045)
Update changelog.
Update changelog.
Bump version.
* Bump maintenance branches to 3.2.6 (#1044)
Update my name and copyright.
Update changelog.
↗️ rubocop-ast (indirect, 1.32.3 → 1.36.1) · Repo · Changelog
Release Notes
1.36.1 (from changelog)
1.36.0 (from changelog)
1.35.0 (from changelog)
1.34.1 (from changelog)
1.34.0 (from changelog)
1.33.1 (from changelog)
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 45 commits:
Cut 1.36.1
Update Changelog
Don't show a deprecation warning for `EnsureNode#branch` just yet
Fix typo in node_pattern_compiler.adoc (#338)
Restore docs/antora.yml
Cut 1.36.0
Update Changelog
Deprecate `EnsureNode#body` in favour of `EnsureNode#branch`.
Restore docs/antora.yml
Cut 1.35.0
Update Changelog
Add `BeginNode` for `kwbegin` nodes.
Add `EnsureNode#rescue_node`.
Restore docs/antora.yml
Cut 1.34.1
Update Changelog
[Fix #331] Fix crash in `OpAsgnNode#name` when the lhs is a `send` or `csend` node.
Fix docs for `masgn`.
Add `Node#type?` to reduce complexity of checking against multiple node types.
Define `GROUP_FOR_TYPE` for specifying the node types for each group predicate (`argument_type?`, etc.).
Extend `Node#const_name` to `casgn` nodes.
Restore docs/antora.yml
Cut 1.34.0
Update Changelog
Introduce `lhs` and `rhs` aliases to assignment nodes for consistency.
Restore docs/antora.yml
Cut 1.33.1
Add Changelog entry
Allow `non_bare_access_modifier_declaration?` to handle modifiers with multiple arguments.
Enable JRuby
Restore docs/antora.yml
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