#7916: Support autocorrection for Lint/AmbiguousRegexpLiteral. (@koic)
#7917: Support autocorrection for Lint/UselessAccessModifier. (@koic)
#595: Add ERB pre-processing for configuration files. (@jonas054)
#7918: Support autocorrection for Lint/AmbiguousOperator. (@koic)
#7937: Support autocorrection for Style/IfWithSemicolon. (@koic)
#3696: Add AllowComments option to Lint/EmptyWhen cop. (@koic)
#7910: Support autocorrection for Lint/ParenthesesAsGroupedExpression. (@koic)
#7925: Support autocorrection for Layout/ConditionPosition. (@koic)
#7934: Support autocorrection for Lint/EnsureReturn. (@koic)
#7922: Add new Layout/EmptyLineAroundAttributeAccessor cop. (@koic)
Bug fixes
#7929: Fix Style/FrozenStringLiteralComment to accept frozen_string_literal anywhere in leading comment lines. (@jeffcarbs)
#7882: Fix Style/CaseEquality when AllowOnConstant is true and the method receiver is implicit. (@rafaelfranca)
#7790: Fix --parallel and --ignore-parent-exclusion combination. (@jonas054)
#7881: Fix --parallel and --force-default-config combination. (@jonas054)
#7635: Fix a false positive for Style/MultilineWhenThen when then required for a body of when is used. (@koic)
#7905: Fix an error when running rubocop --only or rubocop --except options without cop name argument. (@koic)
#7903: Fix an incorrect autocorrect for Style/HashTransformKeys and Style/HashTransformValues cops when line break before to_h method. (@diogoosorio, @koic)
#7899: Fix an infinite loop error for Layout/SpaceAroundOperators with Layout/ExtraSpacing when using ForceEqualSignAlignment: true. (@koic)
#7885: Fix Style/IfUnlessModifier logic when tabs are used for indentation. (@jonas054)
#7909: Fix a false positive for Lint/ParenthesesAsGroupedExpression when using an intended grouped parentheses. (@koic)
#7913: Fix a false positive for Lint/LiteralAsCondition when using true literal in while and similar cases. (@koic)
#7928: Fix a false message for Style/GuardClause when using and or or operators for guard clause in then or else branches. (@koic)
#7928: Fix a false positive for Style/GuardClause when assigning the result of a guard condition with else. (@koic)
Changes
#7860: Change AllowInHeredoc option of Layout/TrailingWhitespace to true by default. (@koic)
#7094: Clarify alignment in Layout/MultilineOperationIndentation. (@jonas054)
#4245: (Breaking) Inspect all files given on command line unless --only-recognized-file-types is given. (@jonas054)
#7390: (Breaking) Enabling a cop overrides disabling its department. (@jonas054)
#7948: Mark unsafe for Style/OptionalArguments. (@koic)
#7931: Remove dependency on the jaro_winkler gem, instead depending on did_you_mean. This may be a breaking change for RuboCop libraries calling NameSimilarity#find_similar_name. (@bquorning)
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 update. Please take a good look at what changed and the test results before merging this pull request.
What changed?
✳️ rubocop (0.82.0 → 0.83.0) · Repo · Changelog
Release Notes
0.83.0
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 72 commits:
Cut 0.83
Merge pull request #7951 from jethrodaniel/rakefile
add `rakefile` (lowercase) to default config
Tweak a changelog entry
Remove dependency on `jaro_winkler`
Use DidYouMean
Change find_similar_name to a module_function
Simplify NameSimilarity.find_similar_name
Add new `Layout/EmptyLineAroundAttributeAccessor` cop
Mark unsafe for `Style/OptionalArguments` cop
Merge pull request #7935 from koic/fix_false_positive_for_style_guard_clause
[Fix #7928] Fix a false positive for `Style/GuardClause`
Merge pull request #7934 from koic/support_autocorrect_for_lint_ensure_return
Merge pull request #7932 from koic/fix_false_message_for_guard_clause
Support autocorrection for `Lint/EnsureReturn`
[Fix #7928] Fix a false message for `Style/GuardClause`
Merge pull request #7925 from koic/support_autocorrection_for_layout_condition_position]
Support autocorrection for `Layout/ConditionPosition`
Merge pull request #7910 from koic/support_autocorrect_for_parentheses_as_grouped_expression
Support autocorrection for `Lint/ParenthesesAsGroupedExpression`
Tweak the changelog
Merge pull request #7907 from koic/add_allow_comments_to_lint_empty_when
[Fix #3696] Add `AllowComments` option to `Lint/EmptyWhen` cop
Implement Style/SlicingWithRange cop
Support autocorrection for `Style/IfWithSemicolon`
[Fix #7936] Mark Lint/BooleanSymbol as unsafe (#7941)
Add required Ruby version to generated cops manual
Merge pull request #7897 from tejasbubane/generator-version-added
Merge pull request #7930 from jonas054/4245_arbitrary_files_on_command_line
Merge pull request #7913 from koic/false_positive_for_lint_literal_as_condition
Fix a false positive for `Lint/LiteralAsCondition`
Merge pull request #7909 from koic/fix_a_false_positive_for_parentheses_as_grouped_expression
Update Change log to link the breaking change
[Fix 4245] Add --only-recognized-file-types and change default
Extract common test code into shared examples
Add mode parameter to TargetFinder#find()
Merge pull request #7939 from jeffcarbs/fix-frozen-string-literal-comment
[Fix #7929] Accept frozen_string_literal anywhere in leading comment lines
Fix a false positive for `Lint/ParenthesesAsGroupedExpression`
Merge pull request #7926 from jonas054/7885_IfUnlessModifier_with_tab_indentation
[Fix #7885] Re-use LineLengthHelp for statement modifiers
Merge pull request #7923 from jonas054/7390_cop_enabled_overrides_department
[Fix #7390] Override disabled department for enabled cops
Merge pull request #7918 from koic/support_autocorrect_for_ambiguous_operator
Support autocorrection for `Lint/AmbiguousOperator`
Merge pull request #7920 from jonas054/595_erb_processing_of_configuration
[Fix #595] Add ERB pre-processing for configuration files
Allow Generator to take version_added parameter
Merge pull request #7917 from koic/support_autocorrect_for_useless_access_modifier
Support autocorrection for `Lint/UselessAccessModifier`
Support autocorrection for `Lint/AmbiguousRegexpLiteral`
Use https instead of http for semver.org
Merge pull request #7901 from koic/fix_an_infinite_loop_error_for_space_around_operators
[Fix #7899] Fix an infinite loop error for `Layout/SpaceAroundOperators`
Merge pull request #7903 from koic/fix_incorrect_autocorrect_for_hash_transform_methods
Fix an incorrect autocorrect for hash transform methods
Fix an error when running `--only` or `--except` options
Display `N/A` for pending cop warnings without `VersionAdded` specified
Replace AppVeyor with GitHub Actions (#7893)
Add .simplecov to rubocop default include list
Merge pull request #7896 from hugopeixoto/patch-1
Fix semantic versioning link
[Fix #7635] Fix a false positive for `Style/MultilineWhenThen`
Merge pull request #7892 from krzysiek1507/patch-1
Fix the command flags table
[Fix #7094] Clarify alignment in MultilineOperationIndentation
[Fix #7881] Call act_on_options earlier in CLI#run()
Merge pull request #7888 from jonas054/7790_parallel_disabling_other_options
[Fix #7790] Set options in ConfigLoader earlier
[Fix #7860] Change `AllowInHeredoc` option of `Layout/TrailingWhitespace` to `true`
Merge pull request #7882 from rafaelfranca/rm-fix-allow-constant
Fix `Style/CaseEquality` when `AllowOnConstant` is `true`
🗑️ jaro_winkler (removed)
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