#10065: Add new Gemspec/DeprecatedAttributeAssignment cop. (@koic)
#10608: Add new Style/MapCompactWithConditionalBlock cop. (@nobuyo)
#10627: Add command-line option --ignore-unrecognized-cops to ignore any unknown cops or departments in .rubocop.yml. (@nobuyo)
#10620: Add Sorbet's typed sigil as a magic comment. (@zachahn)
Bug fixes
#10662: Recover Ruby 2.1 code analysis using TargetRubyVersion: 2.1. (@koic)
#10396: Fix autocorrect for Layout/IndentationWidth to leave module/class body unchanged to avoid infinite autocorrect loop with Layout/IndentationConsistency when body trails after class/module definition. (@johnny-miyake)
#10636: Fix false positive in Style/RedundantCondition when the branches call the same method on different receivers. (@dvandersluis)
#10651: Fix autocorrect for Style/For when using array with operator methods as collection. (@nobuyo)
#10629: Fix default Ruby version from 2.5 to 2.6. (@koic)
#10661: Fix a false negative for Style/SymbolProc when method has no arguments and AllowMethodsWithArguments: true. (@koic)
#10652: Fix a false positive for Style/FetchEnvVar in conditions. (@ydah)
#10665: Fix an incorrect autocorrect for EnforcedStyle: with_first_argument of Layout/ArgumentAlignment and EnforcedColonStyle: separator of Layout/HashAlignment. (@koic)
#10258: Recover Ruby 2.4 code analysis using TargetRubyVersion: 2.4. (@koic)
#10668: Recover Ruby 2.0 code analysis using TargetRubyVersion: 2.0. (@koic)
#10644: Recover Ruby 2.2 code analysis using TargetRubyVersion: 2.2. (@koic)
#10639: Fix Style/HashSyntax to exclude files that violate it with EnforceHashShorthandSyntax when running auto-gen-config. (@nobuyo)
#10633: Fix infinite autocorrection loop in Style/AccessorGrouping when combining multiple of the same accessor. (@dvandersluis)
#10618: Fix LineBreakCorrector so that it won't remove a semicolon in the class/module body. (@johnny-miyake)
#10646: Fix an incorrect autocorrect for Style/SoleNestedConditional when using unless and && without parens in the outer condition and nested modifier condition. (@koic)
#10659: Fix automatically appended path for inherit_from by auto-gen-config is incorrect if specified config file in a subdirectory as an option. (@nobuyo)
#10640: Recover Ruby 2.3 code analysis using TargetRubyVersion: 2.3. (@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.29.0 → ~> 1.30.0) · Repo · Changelog
Release Notes
1.30.0
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 54 commits:
Cut 1.30
Update Changelog
[Fix #10652] Fix a false positive for `Style/FetchEnvVar` in conditions
[Fix #10665] Fix an incorrect autocorrect for `Layout/ArgumentAlignment`
[Fix #10659] Fix automatically appended path for `inherit_from` by `auto-gen-config` is incorrect if specified config file in a subdirectory as an option
Add a reproduction test to autocorrect_spec.rb
[Fix #10396] Fix autocorrect for `Layout/IndentationWidth` to leave module/class body unchanged to avoid infinite autocorrect loop with `Layout/IndentationConsistency` when the body trails after class/module definition
Add new `Style/MapCompactWithConditionalBlock` cop
Recover Ruby 2.0 code analysis using `TargetRubyVersion: 2.0`
Merge pull request #10667 from ydah/fix_typo
Fix a typo "do_someting" -> "do_something"
Rename `Gemspec/TestFilesAssignment` to `Gemspec/DeprecatedAttributeAssignment`
Recover Ruby 2.1 code analysis using `TargetRubyVersion: 2.1`
Use the latest rubocop-* gems
[Fix #10656] Mark `Style/RedundantInterpolation` as unsafe autocorrection
Fix a local variable name to avoid shadowing the block argument
Refactor Style/FetchEnvVar cop
Fix a changelog location
Merge pull request #10654 from nobuyo/fix-autocorrect-for-style-for
Merge pull request #10644 from koic/recover_ruby_22
Merge pull request #10647 from koic/fix_an_incorrect_autocorrect_for_style_sole_nested_conditional
Merge pull request #10658 from nobuyo/fix-auto-gen-config-ignores-config-option
[Fix #10651] Fix autocorrect for `Style/For` when using array with operator methods as collection
[Fix #10657] Fix `--auto-gen-config` command option ignores specified config file by option
Merge pull request #10661 from koic/fix_false_negative_for_style_symbol_proc
Fix a false negative for `Style/SymbolProc`
Merge pull request #10650 from johnny-miyake/fix_autocorrect_for_redundant_begin
[Fix #10631] Fix autocorrect for `Style/RedundantBegin`
[Fix #10646] Fix an incorrect autocorrect for `Style/SoleNestedConditional`
Merge pull request #10645 from mikegee/patch-1
Recover Ruby 2.2 code analysis using `TargetRubyVersion: 2.2`
RuboCop::ThreadSafety moved into the RuboCop org
Merge pull request #10640 from koic/recover_ruby_23
Merge pull request #10641 from nobuyo/fix-auto-gen-config-not-supports-hash-short-syntax
[Fix #10639] Fix `Style/HashSyntax` to exclude files that violate it with `EnforceHashShorthandSyntax` when running `auto-gen-config`
Merge pull request #10642 from ydah/fix_spelling
Use "explicit" instead of "exlicit"
Recover Ruby 2.3 code analysis using `TargetRubyVersion: 2.3`
Add Sorbet's `typed` sigil as a magic comment
[Fix #10618] Fix `LineBreakCorrector` so that it won't remove a semicolon in the class/module body
Fix a build error
[Fix #10065] Add new `Gemspec/TestFilesAssignment` cop
Merge pull request #10637 from dvandersluis/issue/10636
[Fix #10636] Fix false positive in `Style/RedundantCondition` when the branches call the same method on different receivers.
Merge pull request #10635 from dvandersluis/issue-10633
[Fix #10633] Fix infinite autocorrection loop in `Style/AccessorGrouping` when combining multiple of the same accessor.
[Fix #10627] Add command-line option `--ignore-unrecognized-cops` to ignore any unknown cops or departments in .rubocop.yml
[Fix #10258] Recover Ruby 2.4 code analysis using `TargetRubyVersion: 2.4`
Skip files with no offenses in the markdown formatter (#10616)
Unify to remove 'This cop' from cop description in each cop file
Add new `InternalAffairs/CopDescription` cop
Fix default target Ruby version from 2.5 to 2.6
[Fix #10095] Change "auto-correct" to "autocorrect"
Switch back to 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