#11305: Add new Style/RedundantDoubleSplatHashBraces cop. (@koic)
#10812: New AllowMultilineFinalElement option for all LineBreaks cops. (@Korri)
#11277: Add new Style/ConcatArrayLiterals cop. (@koic)
Bug fixes
#11255: Fix an error for Style/RequireOrder when require with no arguments is put between require. (@ydah)
#11273: Fix a false positive for Lint/DuplicateMethods when there are same alias_method name outside rescue or ensure scopes. (@koic)
#11267: Fix an error for Style/RequireOrder when modifier conditional is used between require. (@ydah)
#11254: Fix an error for Style/RequireOrder when require is a method argument. (@koic)
#11266: Fix a false positive for Style/RedundantConstantBase when enabling Lint/ConstantResolution. (@koic)
#11296: Fix an error for Lint/NonAtomicFileOperation when use file existence checks line break unless by postfix before creating file. (@koic)
#11284: Fix an incorrect autocorrect for Style/WordArray when assigning %w() array. (@koic)
#11299: Fix base_dir in TargetFinder#find_files(). (@dukaev)
#11250: Fix an error for Style/GuardClause when a method call whose last argument is not a string is in the condition body. (@ydah)
#11298: Fix Lint/SafeNavigationChain to correctly handle [] operator followed by save navigation and method chain. (@fatkodima)
#11256: Fix an incorrect autocorrect for Style/HashSyntax when without parentheses call expr follows after multiple keyword arguments method call. (@koic)
#11289: Correctly detect Rails version when using only parts of the framework, instead of the "rails" gem. (@bdewater)
#11262: Fix an error for Style/IfUnlessModifier when the body is a method call with hash splat. (@fatkodima)
#11281: Fix NoMethodError for Style/Documentation when a class nested under non-constant values. (@arika)
Changes
#11306: Make Style/IfWithSemicolon aware of one line without else body. (@koic)
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 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.41.0) · Repo · Changelog
Release Notes
1.41.0
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 55 commits:
Cut 1.41
Update Changelog
Make `Style/IfWithSemicolon` aware of one line without `else` body
[Fix #11267] Fix an error for Style/RequireOrder when modifier conditional is used between `require`
Mark as private for YARD
Allow extensions inject their defaults
Add new `Style/RedundantDoubleSplatBrackets` cop
Fix `Lint/SafeNavigationChain` to correctly handle `[]` operator followed by save navigation and method chain
More rubocop optimizations
Merge pull request #11301 from fatkodima/memory_profiler-file
Print `memory_profiler` report to the file
Correctly detect Rails version when using only parts of the framework
Fix an error for `Lint/NonAtomicFileOperation`
Fix base_dir in TargetFinder#find_files() (#11299)
[Doc] Fix a typo in the changelog
[Fix #11292] Tweak autocorrection for `Lint/NonAtomicFileOperation`
Merge pull request #11287 from alexmcdermid/patch-1
update class_length.rb and module_length.rb
[Fix #11284] Fix an incorrect autocorrect for `Style/WordArray`
Change `Badge#department` type back to `Symbol`
Add `rubocop-changed` extension to documentation (#11280)
More rubocop optimizations
[Fix #11266] Fix a false positive for `Style/RedundantConstantBase`
[Fix #11277] Add new `Style/ConcatArrayLiterals` cop
Merge pull request #11281 from arika/fix_style_documentation_cop
Fix NoMethodError for Style/Documentation when a class nested under non-constant values
Generate documentation for AllowMultilineFinalElement
Update cops documentation
Introduce AllowMultilineFinalElement option
Use RuboCop RSpec 2.16
[Fix #11273] Fix a false positive for `Lint/DuplicateMethods`
Merge pull request #11276 from ydah/fix/missing_link
Merge pull request #11275 from ydah/add/description_ci
Fixed missing link in CONTRIBUTING.md
Add description of linting YAML files to CONTRIBUTING.md
More rubocop optimizations
Fix PR identifier for `Style/RequireOrder` cop
Merge pull request #11257 from koic/fix_an_incorrect_autocorrect_for_style_hash_syntax
Tweak an error message when configuring `Lint/Syntax`
Merge pull request #11262 from fatkodima/if_unless_modifier-splat
Merge pull request #11263 from ydah/fix/typos
Fix a typo
Fix an error for `Style/IfUnlessModifier` when the body is a method call with hash splat
Merge pull request #11258 from ydah/fix/error_require_order
[Fix #11255] Fix an error for `Style/RequireOrder` when `require` with no arguments is put between `require`
Merge pull request #11254 from koic/fix_an_error_for_style_require_order
[Fix #11256] Fix an incorrect autocorrect for `Style/HashSyntax`
Fix an error for `Style/RequireOrder`
Tweak optimized checking if the file is relevant for the cop
Remove a redundant guard clause
Merge pull request #11250 from ydah/fix/error_guard_clause
Fix an error for `Style/GuardClause` when a method call whose last argument is not a string is in the condition body
Fix a typo
Fix a build error
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