Skip to content

Commit

Permalink
Set default max line length to 120 for Style/MultilineMethodSignature
Browse files Browse the repository at this point in the history
Follow up rubocop#7952.

This PR sets default max line length to 120 for `Style/MultilineMethodSignature`.

A forgotten change have been found as well as:
https://github.com/rubocop-hq/rubocop/pull/8203/files#diff-533235edf6b414408f1b9f380c00af0d
  • Loading branch information
koic committed Jul 15, 2020
1 parent a45042b commit e5780bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -10,6 +10,10 @@
* [#8299](https://github.com/rubocop-hq/rubocop/issues/8299): Fix an incorrect auto-correct for `Style/RedundantCondition` when using `raise`, `rescue`, or `and` without argument parentheses in `else`. ([@koic][])
* [#8335](https://github.com/rubocop-hq/rubocop/issues/8335): Fix incorrect character class detection for nested or POSIX bracket character classes in `Style/RedundantRegexpEscape`. ([@owst][])

### Changes

* [#8350](https://github.com/rubocop-hq/rubocop/pull/8350): Set default max line length to 120 for `Style/MultilineMethodSignature`. ([@koic][])

## 0.88.0 (2020-07-13)

### New features
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/style/multiline_method_signature.rb
Expand Up @@ -53,7 +53,7 @@ def definition_width(node)
end

def max_line_length
config.for_cop('Layout/LineLength')['Max'] || 80
config.for_cop('Layout/LineLength')['Max'] || 120
end
end
end
Expand Down

0 comments on commit e5780bc

Please sign in to comment.