#10685: Fix a false positive for Style/StringConcatenation when Mode: conservative and first operand is not string literal. (@koic)
#10670: Fix a false positive for Style/FetchEnvVar in the body with assignment method. (@ydah)
#10671: Fix an incorrect autocorrect for EnforcedStyle: with_first_argument of Layout/ArgumentAlignment and EnforcedColonStyle: separator of Layout/HashAlignment. (@koic)
#10676: Fix --ignore-unrecognized-cops option always showing empty warning even if there was no problem. (@nobuyo)
#10674: Fix a false positive for Naming/AccessorMethodName with type of the first argument is other than arg. (@ydah)
#10679: Fix a false positive for Style/SafeNavigation when TargetRubyVersion: 2.2 or lower. (@koic)
Changes
#10673: Update auto-gen-config's comment re auto-correct for SafeAutoCorrect: false. (@ydah)
RuboCop 1.30
New features
#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)
#10685: Fix a false positive for Style/StringConcatenation when Mode: conservative and first operand is not string literal. ([@koic][])
#10670: Fix a false positive for Style/FetchEnvVar in the body with assignment method. ([@ydah][])
#10671: Fix an incorrect autocorrect for EnforcedStyle: with_first_argument of Layout/ArgumentAlignment and EnforcedColonStyle: separator of Layout/HashAlignment. ([@koic][])
#10676: Fix --ignore-unrecognized-cops option always showing empty warning even if there was no problem. ([@nobuyo][])
#10674: Fix a false positive for Naming/AccessorMethodName with type of the first argument is other than arg. ([@ydah][])
#10679: Fix a false positive for Style/SafeNavigation when TargetRubyVersion: 2.2 or lower. ([@koic][])
Changes
#10673: Update auto-gen-config's comment re auto-correct for SafeAutoCorrect: false. ([@ydah][])
1.30.0 (2022-05-26)
New features
#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][])
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps rubocop from 1.27.0 to 1.30.1.
Release notes
Sourced from rubocop's releases.
... (truncated)
Changelog
Sourced from rubocop's changelog.
... (truncated)
Commits
6f3ccdd
Cut 1.30.1f62c415
Update Changeloge61ee78
Merge pull request #10695 from ydah/change_suggest_rake_task_warningdef56cb
Change command for the rake task with arguments to a style that can also be u...fa78663
Fix SafeMode deprecation version in the changelog (#10690)0c7a1aa
Move default enforced styles to top in docsa9fd669
Add a check for EnforcedStyle: (default) examples35d0d2b
Merge pull request #10688 from koic/fix_a_false_positive_for_style_string_con...0a91fb2
[Fix #10685] Fix a false positive forStyle/StringConcatenation
a5de777
Merge pull request #10674 from ydah/fix_a_false_positive_accessor_method_nameDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)