#9930: Support Ruby 2.7's pattern matching for Lint/DuplicateBranch cop. (@koic)
Bug fixes
#9938: Fix an incorrect auto-correct for Layout/LineLength when a heredoc is used as the first element of an array. (@koic)
#9940: Fix an incorrect auto-correct for Style/HashTransformValues when value is a hash literal for _.to_h{...}. (@koic)
#9752: Improve error message for top level department used in configuration. (@jonas054)
#9933: Fix GitHub Actions formatter when running in non-default directory. (@ojab)
#9922: Make better auto-corrections in Style/DoubleCopDisableDirective. (@jonas054)
#9848: Fix handling of comments in Layout/ClassStructure auto-correct. (@jonas054)
#9926: Fix an incorrect auto-correct for Style/SingleLineMethods when method body is enclosed in parentheses. (@koic)
#9928: Fix an infinite loop error and a false auto-correction behavior for Layout/EndAlignment when using operator methods and EnforcedStyleAlignWith: variable. (@koic)
#9434: Fix false positive for setter calls in Layout/FirstArgumentIndentation. (@jonas054)
RuboCop 1.18.3
Bug fixes
#9891: Fix --auto-gen-config bug for Style/HashSyntax. (@jonas054)
#9905: Fix false positive for single line concatenation in Layout/LineEndStringConcatenationIndentation. (@jonas054)
#9907: Fix an incorrect auto-correct for Lint/UselessTimes when using block argument for 1.times. (@koic)
#9869: Fix reference to file in configuration override warning. (@jonas054)
#9902: Fix an incorrect auto-correct for Style/BlockDelimiters when there is a comment after the closing brace. (@koic)
#8469: Add inspection of class << to Layout/SpaceAroundOperators. (@jonas054)
#9909: This PR fixes an incorrect auto-correct for Style/SingleLineMethods when using return, break, or next for one line method body in Ruby 3.0. (@koic)
#9914: Fix an error for Layout/HashAlignment when using aligned hash argument for proc.(). (@koic)
RuboCop 1.18.2
Bug fixes
#9894: Handle multiline string literals in Layout/LineEndStringConcatenationIndentation. (@jonas054)
#9890: Make colon after comment annotation configurable. (@gregfletch)
RuboCop 1.18.1
Bug fixes
#9897: Fix an incorrect auto-correct for Layout/HashAlignment when setting EnforcedStyle: with_fixed_indentation of Layout/ArgumentAlignment and using misaligned keyword arguments. (@koic)
#9930: Support Ruby 2.7's pattern matching for Lint/DuplicateBranch cop. ([@koic][])
Bug fixes
#9938: Fix an incorrect auto-correct for Layout/LineLength when a heredoc is used as the first element of an array. ([@koic][])
#9940: Fix an incorrect auto-correct for Style/HashTransformValues when value is a hash literal for _.to_h{...}. ([@koic][])
#9752: Improve error message for top level department used in configuration. ([@jonas054][])
#9933: Fix GitHub Actions formatter when running in non-default directory. ([@ojab][])
#9922: Make better auto-corrections in Style/DoubleCopDisableDirective. ([@jonas054][])
#9848: Fix handling of comments in Layout/ClassStructure auto-correct. ([@jonas054][])
#9926: Fix an incorrect auto-correct for Style/SingleLineMethods when method body is enclosed in parentheses. ([@koic][])
#9928: Fix an infinite loop error and a false auto-correction behavior for Layout/EndAlignment when using operator methods and EnforcedStyleAlignWith: variable. ([@koic][])
#9434: Fix false positive for setter calls in Layout/FirstArgumentIndentation. ([@jonas054][])
1.18.3 (2021-07-06)
Bug fixes
#9891: Fix --auto-gen-config bug for Style/HashSyntax. ([@jonas054][])
#9905: Fix false positive for single line concatenation in Layout/LineEndStringConcatenationIndentation. ([@jonas054][])
#9907: Fix an incorrect auto-correct for Lint/UselessTimes when using block argument for 1.times. ([@koic][])
#9869: Fix reference to file in configuration override warning. ([@jonas054][])
#9902: Fix an incorrect auto-correct for Style/BlockDelimiters when there is a comment after the closing brace. ([@koic][])
#8469: Add inspection of class << to Layout/SpaceAroundOperators. ([@jonas054][])
#9909: This PR fixes an incorrect auto-correct for Style/SingleLineMethods when using return, break, or next for one line method body in Ruby 3.0. ([@koic][])
#9914: Fix an error for Layout/HashAlignment when using aligned hash argument for proc.(). ([@koic][])
1.18.2 (2021-07-02)
Bug fixes
#9894: Handle multiline string literals in Layout/LineEndStringConcatenationIndentation. ([@jonas054][])
#9890: Make colon after comment annotation configurable. ([@gregfletch][])
1.18.1 (2021-06-30)
Bug fixes
#9897: Fix an incorrect auto-correct for Layout/HashAlignment when setting EnforcedStyle: with_fixed_indentation of Layout/ArgumentAlignment and using misaligned keyword arguments. ([@koic][])
Changes
#9895: Set CheckStrings: false and Remove master from FlaggedTerms for Naming/InclusiveLanguage. ([@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 0.93.0 to 1.18.4.
Release notes
Sourced from rubocop's releases.
... (truncated)
Changelog
Sourced from rubocop's changelog.
... (truncated)
Commits
d6fb135
Cut 1.18.46da5ca1
Update Changelog4874caa
[Fix #9940] Fix an incorrect auto-correct forStyle/HashTransformValues
36029ff
Support Ruby 2.7's pattern matching forLint/DuplicateBranch
dfb9c26
[Fix #9752] Improve error message for top level department0886479
Fix an incorrect auto-correct forLayout/LineLength
3907e07
Merge pull request #9932 from koic/fix_false_autocorrection_for_layout_end_al...f2c5f0e
Useoffense
instead ofoffence
82d7122
Merge pull request #9937 from jonas054/9922_fix_DoubleCopDisableDirective49b3999
[Fix #9922] Replace extra disable directives with commaDependabot 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)