Update rubocop: 1.33.0 → 1.34.1 (minor)
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 (1.33.0 → 1.34.1) · Repo · Changelog
Release Notes
1.34.1
Bug fixes
1.34.0
New features
- #10170: Add new
InternalAffairs/SingleLineComparison
cop. (@dvandersluis)Bug fixes
- #10552: Require RuboCop AST 1.20.0+ to fix a false positive for
Lint/OutOfRangeRegexpRef
when using fixed-encoding regopt. (@koic)- #10512: Fix a false positive for
Lint/ShadowingOuterLocalVariable
conditional statement and block variable. (@ydah)- #10864:
min
andmax
results in false positives forStyle/SymbolProc
similarly toselect
andreject
. (@mollerhoj)- #10846: Fix a false negative for
Style/DoubleNegation
when there is a hash or an array at return location of method. (@nobuyo)- #10875: Fix an obsolete option configuration values are duplicated when generating
.rubocop_todo.yml
. (@ydah)- #10877: Fix crash with
Layout/BlockEndNewline
heredoc detection. (@dvandersluis)- #10859: Fix
Lint/Debugger
to be able to handle method chains correctly. (@dvandersluis)- #10883: Fix
Style/RedundantParentheses
to be able to detect offenses and properly correct when the end parentheses and comma are on their own line. (@dvandersluis)- #10881: Fix
Style/SoleNestedConditional
to properly wrapblock
andcsend
nodes when necessary. (@dvandersluis)- #10867: Mark autocorrection for
Lint/EmptyConditionalBody
as unsafe. (@dvandersluis)- #10871: Restore
RuboCop::ConfigLoader.project_root
as deprecated. (@koic)Changes
- #10857: Add
AllowedPatterns
toStyle/NumericLiterals
. (@dvandersluis)- #10648: Allow
Style/TernaryParentheses
to take priority overStyle/RedundantParentheses
when parentheses are enforced. (@dvandersluis)- #10731: Show tip for suggested extensions that are installed but not loaded in .rubocop.yml. (@nobuyo)
- #10845: Support Bundler-like namespaced feature on require config. (@r7kamura)
- #10773: Require Parser 3.1.2.1 or higher. (@dvandersluis)
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 40 commits:
Cut 1.34.1
Update Changelog
[Fix #10893] Fix an error when running `rubocop` without `bundle exec`
Switch back docs version
Cut 1.34
Update Changelog
Support Bundler-like namespaced feature on require config
Merge pull request #10886 from dvandersluis/issue/10881
Merge pull request #10885 from dvandersluis/issue/10883
[Fix #10883] Fix `Style/RedundantParentheses` to be able to detect offenses and properly correct when the end parentheses and comma are on their own line.
[Fix #10881] Fix `Style/SoleNestedConditional` to properly wrap `block` and `csend` nodes when necessary.
Merge pull request #10887 from dvandersluis/lint/shadowed-exception
Merge pull request #10888 from dvandersluis/issue/10773
[Fix #10773] Update `parser` gem to >= 3.1.2.1.
Improve documentation for `Lint/ShadowedException`.
Merge pull request #10884 from mollerhoj/add_min_and_max_to_list_of_false_positives_for_style_symbol_proc
add min and max to list of false positives for Style/SymbolProc
[Fix #10552] Fix a false positive for `Lint/OutOfRangeRegexpRef`
Merge pull request #10880 from dgollahon/fix-elif-typo
Fix `elif` (`elsif`) typo
Mark deprecated method with `@deprecated`
[Fix #10512] Fix a false positive for `Lint/ShadowingOuterLocalVariable` conditional statement and block variable
[Fix #10648] Allow `Style/TernaryParentheses` to take priority over `Style/RedundantParentheses`.
[Fix #10877] Fix crash with `Layout/BlockEndNewline` heredoc detection.
Merge pull request #10875 from ydah/fix/duplicate_parameter
Merge pull request #10873 from dvandersluis/style/numeric-literals-allowed-patterns
Fix an obsolete option configuration values are duplicated when generating `.rubocop_todo.yml`
[Fix #10857] Add `AllowedPatterns` to `Style/NumericLiterals`.
Fix a broken link
[Fix #10871] Restore `RuboCop::ConfigLoader.project_root` as deprecated
[Fix #10846] Fix a false negative for `Style/DoubleNegation` when there is a hash or an array at return location of method
Merge pull request #10869 from dvandersluis/lint/debugger-method-chains
Fix `InternalAffairs/SingleLineComparison` issues.
Add new `InternalAffairs/SingleLineComparison` cop.
[Fix #10859] Fix `Lint/Debugger` to be able to handle method chains correctly.
Mark autocorrection for `Lint/EmptyConditionalBody` as unsafe.
[Fix #10731] Show tip for suggested extensions that are installed but not loaded in .rubocop.yml
[Docs] Fix broken xrefs
Tweak a changelog entry
Switch back the docs version
↗ ️ parser (indirect, 3.1.2.0 → 3.1.2.1) · Repo · Changelog
Release Notes
3.1.2.1 (from changelog)
Bugs fixed:
- ruby31.y: fix preparing the state for one-line patterns without braces (#864) (Vladimir Dementyev)
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 4 commits:
↗ ️ rubocop-ast (indirect, 1.19.1 → 1.21.0) · Repo · Changelog
Release Notes
1.21.0 (from changelog)
New features
1.20.1 (from changelog)
New features
- #237 Fix
#macro?
for numblock nodes (@gsamokovarov)
1.20.0 (from changelog)
Bug fixes
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 13 commits:
Cut 1.21.0
Update Changelog
Restore docs/antora.yml
Add a type predicate `dot?` to Token
Cut 1.20.1
Update Changelog
Fix #macro? for numblock nodes
Restore docs/antora.yml
Cut 1.20.0
Update Changelog
Make `RegexpNode` aware of fixed-encoding regopt
Suppress `Style/EmptyHeredoc` offenses
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
- @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)