Upgrade rubocop to version 0.82.0
Created by: depfu[bot]
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.61.1 → ~> 0.82.0) · Repo · Changelog
Release Notes
0.82.0
New features
- #7867: Add support for tabs in indentation. (@DracoAter)
- #7863: Corrector now accepts nodes in addition to ranges. (@marcandre)
- #7862: Corrector now has a
wrap
method. (@marcandre)- #7850: Make it possible to enable/disable pending cops. (@koic)
- #7861: Make it to allow
Style/CaseEquality
when the receiver is a constant. (@rafaelfranca)- #7851: Add a new
Style/ExponentialNotation
cop. (@tdeo)- #7384: Add new
Style/DisableCopsWithinSourceCodeDirective
cop. (@egze)- #7826: Add new
Layout/SpaceAroundMethodCallOperator
cop. (@saurabhmaurya15)Bug fixes
- #7871: Fix an auto-correction bug in
Lint/BooleanSymbol
. (@knu)- #7842: Fix a false positive for
Lint/RaiseException
when raising Exception with explicit namespace. (@koic)- #7834: Fix
Lint/UriRegexp
to register offense with array arguments. (@tejasbubane)- #7841: Fix an error for
Style/TrailingCommaInBlockArgs
when lambda literal (->
) has multiple arguments. (@koic)- #7842: Fix a false positive for
Lint/RaiseException
when Exception without cbase specified under the namespaceGem
by addingAllowedImplicitNamespaces
option. (@koic)Style/IfUnlessModifier
does not infinite-loop when autocorrecting long lines which use if/unless modifiers and have multiple statements separated by semicolons. (@alexdowad)- rubocop-hq/rubocop-rails#127: Use
ConfigLoader.default_configuration
for the default config. (@hanachin)Changes
- (Breaking) Renamed
Layout/Tab
cop toLayout/IndentationStyle
. (@DracoAter)- #7869: (Breaking) Drop support for Ruby 2.3. (@koic)
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 43 commits:
Cut 0.82.0
Fix a build error
Use ConfigLoader.default_configuration for default (#7632)
Fix a false positive for `Layout/SpaceAroundMethodCallOperator`
Avoid infinite loop when autocorrecting with Style/IfUnlessModifier
Fix the changelog
Add support for tabs in indentation (#7867)
Add spec for warning messages when cache location is invalid
Merge pull request #7875 from koic/enable_new_cops_for_rubocop_development
Enable `NewCops` for RuboCop development
Merge pull request #7874 from koic/fix_release_version
Update docs for TrailingCommaInArguments cop
Fix the next release version
Tweak the changelog
Fix a typo
[Fix #7842] Add `AcceptImplicitNamespaces` to `Lint/RaiseException`
[Fix #7826] Add new `Layout/SpaceAroundMethodCallOperator` cop (#7857)
Merge pull request #7871 from knu/fix_boolean_symbol_autocorrection
Fix an auto-correction bug in Lint/BooleanSymbol
Merge pull request #7870 from yujideveloper/fix/typo
Fix typo of pr link and add missing pr link in CHANGELOG
Drop support for Ruby 2.3
Suppress an offenses when using `rubocop --enable-pending-cops`
Add missing style guide link
[Docs] Add missing comma
[Docs] Extend a bit the landing page of the docs
Simplify now that corrector accept node arguments and/or allow wrap
Have correctors accept nodes in addition to ranges.
Implement new Style/ExponentialNotation cop
Add option to allow case equality when the receiver is a constant
Add #wrap to corrector
Merge pull request #7859 from axyjo/axyjo-rubocop-todo-docs-typo
Fix small `rubocop:todo` typo.
[Fix #7850] Make it possible to enable/disable pending cops
Merge pull request #7843 from koic/fix_error_for_style_trailing_comma_in_block_args
[Fix #7841] Fix an error for `Style/TrailingCommaInBlockArgs` cop
Merge pull request #7837 from tejasbubane/fix-7834
Fix `Lint/UriRegexp` to register offense with array arguments
Merge pull request #7845 from koic/fix_false_positive_for_lint_raise_exception
[#7842] Fix a false positive for `Lint/RaiseException`
Merge pull request #7384 from egze/disable_cops_within_source_code_directive
Merge pull request #7840 from yujideveloper/fix/typo
Fix typo in CHANGELOG and relnotes
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)