#8232: Fix a false positive for Layout/EmptyLinesAroundAccessModifier when end immediately after access modifier. (@koic)
#7777: Fix crash for Layout/MultilineArrayBraceLayout when comment is present after last element. (@shekhar-patil)
#7776: Fix crash for Layout/MultilineMethodCallBraceLayout when comment is present before closing braces. (@shekhar-patil)
#8282: Fix Style/IfUnlessModifier bad precedence detection. (@tejasbubane)
#8289: Fix Style/AccessorGrouping to not register offense for accessor with comment. (@tejasbubane)
#8310: Handle major version requirements in Gemspec/RequiredRubyVersion. (@eugeneius)
#8315: Fix crash for Style/PercentLiteralDelimiters when the source contains invalid characters. (@eugeneius)
#8239: Don't load .rubocop.yml files at all outside of the current project, unless they are personal configuration files and the project has no configuration. (@deivid-rodriguez)
Changes
#8021: Rewrite Layout/SpaceAroundMethodCallOperator cop to make it faster. (@fatkodima)
#8294: Add of to AllowedNames of MethodParameterName cop. (@AlexWayfer)
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 update. Please take a good look at what changed and the test results before merging this pull request.
What changed?
✳️ rubocop (0.87.1 → 0.88.0) · Repo · Changelog
Release Notes
0.88.0
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 68 commits:
Cut 0.88
Add a changelog entry
Ignore configuration files outside of the project
Only look up to the project's root for exclusions
Fix `traverse_files_upwards` to make searching up to the root possible
Merge pull request #8279 from Fatsoma/feature/require_order_block_pass
Merge branch 'master' into feature/require_order_block_pass
Fix line number for empty file offense
Fix expect_offense when annotations missing
Merge pull request #8316 from fatkodima/autocorrect-to-disjunctive_assignment_in_constructor
Support autocorrect for `Lint/DisjunctiveAssignmentInConstructor` cop
Add `--memory` option to `bin/rubocop-profile` (#8318)
Reuse `ConfigStore#for_pwd` in a couple more places
Extract `ConfigStore#for_pwd`
Merge pull request #8315 from eugeneius/percent_literal_delimiters_scrub
Handle invalid characters in Style/PercentLiteralDelimiters
Merge pull request #8313 from koic/prevent_missing_trailing_zero_in_float_type
Prevent missing final zero of version number for docs/antora.yml
Optimize `Lint/DuplicateMethods`, `Lint/NestedMethodDefinition`, `Style/AutoResourceCleanup` and `Style/NumericPredicate` cops a bit
Merge pull request #8310 from eugeneius/required_major_ruby_version
Handle major version requirements in Gemspec/RequiredRubyVersion
Rewrite `Style/TrailingMethodEndStatement` to make it faster
Reduce allocated Sets
Fix LiteralAsCondition when condition
Refactor Lint specs to use expect_offense
Reduce memory usage in `ResultCache#rubocop_checksum`
Optimize `Style/CommentedKeyword` to reduce memory usage
Memoize `Badge#to_s` to reduce memory allocations (#8306)
[Docs] Tweak some markup
[Docs] Fix a typo
[Docs] Remove mention of Bountysource
Refactor spec use expect_correction in Lint cops (#8285)
[Fixes #8286] Allow abbreviated offense messages with `expect_offense`
Rewrite `Layout/SpaceAroundMethodCallOperator` cop to make it faster
Merge pull request #8292 from tejasbubane/fix-8289
Remove `PathUtil.pwd` and `PathUtil.chdir`
Remove a redundant changelog entry
Add `of` to `AllowedNames` of `MethodParameterName` cop
Sort `AllowedNames` of `MethodParameterName` cop
[Fix #8189] Consider spaces for Layout/MultilineBlockLayout
Fix `Style/AccessorGrouping` to not register offense for accessor with comment
Join lines because the line length limit is now higher
Swith to opposite style since it's preferred
Refactor `last_file_upwards` to not build an intermmediate array
Small file finding refactor
Add new `Style/ArrayCoercion` cop
Add new `Lint/DuplicateElsifCondition` cop
Merge pull request #8287 from tejasbubane/fix-8282
Fix `Style/IfUnlessModifier` bad precedence detection
Add new `Style/CaseLikeIf` cop
Add new `Style/RedundantFileExtensionInRequire` cop
Add new `Style/HashLikeCase` cop
Move a couple of changelog entries
[Fix #7776] Generate valid code if comment exists before closing brace (#8237)
Merge pull request #8271 from fatkodima/hash-array-last-item
[Fixes #8273] Fix false positive for Style/WhileUntilModifier.
Add new `Style/HashAsLastArrayItem` cop
Use expect_correction in Lint/NonDeterministicRequireOrder spec
Detect require method as arg in Lint/NonDeterministicRequireOrder
Refactor
expect_offense: coerce replacements to string
Remove unneeded include
Remove unnecessary logic from MissingElse
[Fix #8232] Fix a false positive for `Layout/EmptyLinesAroundAccessModifier`
Runner: refactor
Update index.adoc
Basic support for profiling with bin/rubocop-profile
[Docs] Switch back to master
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