This repository was archived by the owner on Oct 13, 2025. It is now read-only.
Upgrade rubocop to version 1.19.0 #646
Closed
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 upgrade. Please take a good look at what changed and the test results before merging this pull request.
What changed?
✳️ rubocop (0.81 → 1.19.0) · Repo · Changelog
Release Notes
Too many releases to show here. View the full release notes.
Commits
See the full diff on Github. The new version differs by 61 commits:
Cut 1.19.0Update Changelog[Fix #9980] Fix a false positive for `Style/IdenticalConditionalBranches`[Fix #9962] Update `Style/WordArray` to register an offense in `percent` style if any values contain spaces.[Fix #9973] Fix a false positive for `Layout/RescueEnsureAlignment`[Fix #4182] Add `Lint/AmbiguousRange` cop to check for ranges with ambiguous boundaries.Add new `Style/RedundantSelfAssignmentBranch` copAdd doc and test for about pattern matching for `Style/MissingElse`Update `StyleGuide` URL for `Style/WhenThen`Update the doc for `Style/BlockDelimiters`[Fix #9989] Mark unsafe auto-correct for `Style/CommentedKeyword`Use parallel static analysis by default (#10000)Merge pull request #10003 from koic/fix_incorrect_autocorrect_for_lint_ambiguous_regexp_literalMerge pull request #9994 from dvandersluis/issue/5022[Fix #10002] Fix an incorrect auto-correct for `Lint/AmbigousRegexpLiteral`Merge pull request #10001 from dvandersluis/issue/7422[Fix #7422] Treat `casgn` nodes like other assignment nodes in `Layout/SpaceAroundOperators`.[Fix #5022] Fix false negative for `Lint/DuplicateMethods` inside `class << self`.Merge pull request #9987 from dvandersluis/internal/undefined-configMerge pull request #9995 from dvandersluis/duplicate-methods-testsTemporarily mark some `Lint/DuplictaeMethods` specs as pending in order to be able to cleanly merge rubocop/rubocop-ast#197.Merge pull request #9988 from jonas054/9927_LineEndStringConcatenationIndentation_indented_hash_values[Fix #9927] Indent hash values in LineEndStringConcatenationIndentationMerge pull request #9985 from koic/mark_unsafe_autocorrect_for_style_identical_conditional_branchesFix `InternalAffairs/UndefinedConfig` offenses.Add `InternalAffairs/UndefinedConfig` cop to highlight configuration keys that are used in cops but not defined in `config/default.yml`.Merge pull request #9984 from dvandersluis/heredoc-spacingUpdate `Layout/SpaceBeforeComment` to handle heredocs.Update `Layout/SpaceBeforeComma` and `Layout/SpaceBeforeSemicolon` to handle heredocs.Update `Layout/SpaceInsideParens` to handle heredoc method arguments.Mark `Style/IdenticalConditionalBranches` as unsafe auto-correction[Fix #9977] Update `Layout/EmptyLineAfterGuardClause` to not register an offense if there is another expression following the guard clause on the same line.Fix typo `accpets` -> `accepts` in specs.Merge pull request #9970 from mtsmfm/sort-with-arg[Fix #9957] Add `WholeWord` configuration to `Naming/InclusiveLanguage`'s `FlaggedTerms` config.Enable basic autocorrection for `Style/Semicolon`.Minor refactoring of `Style/Semicolon`, allow it to find multiple offenses on one line.Remove unnecessary code for unsupported Ruby 2.4Merge pull request #9976 from dvandersluis/issue/9975[Fix #9975] Parentheses are always required when a forwarding argument (`...`) is used.Fix `inherit_mode` for arrays in extension default[Fix #9953] Fix a false auto-correction behavior for `Layout/EndAlignment`[Fix #9954] Fix an infinite loop error for `Layout/HashAlignment`[Fix #4097] Add require English for special globalsMake `Layout/LeadingCommentSpace` aware of `#:nodoc`[Fix #9955] Fix `Style/ExplicitBlockArgument` adding a second set of parentheses.[Fix #9959] Make `Style/IdenticalConditionalBranches` able to handle ternary `if`s.[Fix #9958] Prevent an infinite loop when a detected method has fewer arguments than expected.Merge pull request #9969 from koic/add_internal_affairs_inherit_deprecated_cop_class_copDon't register an offense when sort method has arguments for `Style/RedundantSort` copMerge pull request #9972 from deivid-rodriguez/fix_windows_ciTry fix CI errors on WindowsAdd `InternalAffairs/InheritDeprecatedCopClass` copMerge pull request #9971 from koic/workaround_for_bundler_2_2_5_on_windowsWorkaround for CI build error when using Bundler 2.2.5 on WindowsSupport Ruby 2.7's pattern matching for `Style/ConditionalAssignment`Merge pull request #9950 from jonas054/9945_fix_TrailingWhitespaceMerge pull request #9949 from jonas054/9946_fix_hanging_CommentedKeywordSwitch back the docs version[Fix #9945] Fix heredoc indentation in trailing space corrections[Fix #9946] Avoid slow regexp match in Style/CommentedKeywordDepfu 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