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 (1.37.1 → 1.39.0) · Repo · Changelog
Release Notes
1.39.0
1.38.0
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 66 commits:
Cut 1.39
Update Changelog
Merge pull request #11177 from epaew/bugfix/style/object_then
Fix a false positive for `Style/ObjectThen` cop with TargetRubyVersion < 2.6
Fix a false positive for `Lint/DuplicateMethods`
[Fix #11150] Improve redundant_regex_escape.rb
Merge pull request #11144 from si-lens/fix_auto_correction_bug_for_Style/StringLiterals
[Fix #11123 ] Fix auto correction bug for Style/StringLiterals
[Fix #11173] Fix an incorrect autocorrect for `Style/CollectionCompact`
Add autocorrect for `Layout/LineContinuationLeadingSpace`
Fix a false positive for `Lint/SuppressedException`
[Fix #11168] Fix an incorrect autocorrect for `Style/ClassEqualityComparison`
[Fix #11164] Suppress a server mode message
[Fix #11165] Fix a false positive for `Style/RedundantEach`
Support inline visibility definition on checking visibility
Merge pull request #11163 from r7kamura/feature/style-hash-except-unsafe
Mark `Style/HashExcept` as unsafe
Merge pull request #11162 from koic/fix_a_false_positive_for_style_hash_as_last_array_item
[Fix #11161] Fix a false positive for `Style/HashAsLastArrayItem`
Merge pull request #11158 from okuramasafumi/add-if-to-allowed-parameter-name
Add `if` to allowed names list for MethodParameterName
Merge pull request #11140 from ydah/fix_hash_each_methods
[Fix #11139] Fix a false negative for `Style/HashEachMethods` when using each with a symbol proc argument
Fix a typo
Merge pull request #11156 from gsamokovarov/operator-method-chaining-call
Fix Style/OperatorMethodCall autocorrection when operators are chained
Add `RuboCop::Cop::RangeHelp#range_with_comments_and_lines`
Check blank percent literal by `Layout/SpaceInsidePercentLiteralDelimiters`
Use RuboCop RSpec 2.15
Merge pull request #11138 from ydah/fix_redundant_each
[Fix #11137] Fix a false positive for `Style/RedundantEach` when using `each` with a symbol proc argument
Merge pull request #11149 from hosamaly/report-file-counts-in-worst-formatter
[docs] Update sample output for some formatters
Fix a typo in the doc for `Style/RedundantEach`
Merge pull request #11142 from fatkodima/fix-style-redundant_each
Fix `Style/RedundantEach` for non-chained `each_` calls
Merge pull request #11141 from leoarnold/leoarnold/Style/DateTime/styleguide
Style/DateTime: Fix styleguide link
Fix `table missing leading separator; recovering automatically`
Switch back the docs version
Cut 1.38
Update Changelog
Set whitespace-line-column to 100 in .dir-locals.el
Fix the CI build
Improve Style/IfWithBooleanLiteralBranches's documentation
[Fix #11006] Allow multiple `elsif` for `Style/IfWithBooleanLiteralBranches`
Use broken vertical bar as adoc table separator
Tweak wording
Update the `Style/ModuleFunction` documentation to suggest `class << self` as an alternative (#11045)
[Fix #11120] Fix an incorrect autocorrect for `Lint/RedundantRequireStatement`
Check newline in empty reference bracket on `Layout/SpaceInsideReferenceBrackets`
[Fix #11132] Fix clobbering error on `Lint/EmptyConditionalBody`
Fix a build error
Fix a build error
Add simple autocorrect for `Style/GuardClause`
Opt-in cop compatibility in redundant directives
Fix random test failures for server behavior
[Fix #11066] Update Docs for `Style/CollectionCompact` (#11112)
Report the count of files in the Worst and Offense Count formatters (#11113)
Make Lint/RedundantRequireStatement mark set as a redundant require in Ruby 3.2+
Fix an error for `Layout/SpaceInsideHashLiteralBraces`
[Fix #11117] Fix a false positive for `Style/BlockDelimiters`
Add new `Style/RedundantEach` cop
[Fix #10977] Add option to raise cop errors, `--raise-cop-error` (#11001)
Tweak a changelog entry
Switch back the docs 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