Skip to content

Commit

Permalink
[Fix rubocop#6992] Fix unknown default configuration for Layout/Inden…
Browse files Browse the repository at this point in the history
…tFirstParameter

Looks like most likely a mistake when copying the configuration from
`Layout/IndentFirstArgument` to `Layout/IndentFirstParameter`.
  • Loading branch information
Drenmi committed Apr 30, 2019
1 parent 4f05ea4 commit 90718e2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -7,6 +7,7 @@
* [#6995](https://github.com/rubocop-hq/rubocop/pull/6995): Fix an incorrect auto-correct for `Style/RedundantParentheses` when enclosed in parentheses at `while-post` or `until-post`. ([@koic][])
* [#6996](https://github.com/rubocop-hq/rubocop/pull/6996): Fix a false positive for `Style/RedundantFreeze` when freezing the result of `String#*`. ([@bquorning][])
* [#6998](https://github.com/rubocop-hq/rubocop/pull/6998): Fix autocorrect of `Naming/RescuedExceptionsVariableName` to also rename all references to the variable. ([@Darhazer][])
* [#6992](https://github.com/rubocop-hq/rubocop/pull/6992): Fix unknown default configuration for `Layout/IndentFirstParameter` cop. ([@drenmi][])

## 0.68.0 (2019-04-29)

Expand Down
2 changes: 1 addition & 1 deletion config/default.yml
Expand Up @@ -743,7 +743,7 @@ Layout/IndentFirstParameter:
Enabled: true
VersionAdded: '0.49'
VersionChanged: '0.68'
EnforcedStyle: special_for_inner_method_call_in_parentheses
EnforcedStyle: consistent
SupportedStyles:
- consistent
- align_parentheses
Expand Down
2 changes: 1 addition & 1 deletion manual/cops_layout.md
Expand Up @@ -2529,7 +2529,7 @@ end

Name | Default value | Configurable values
--- | --- | ---
EnforcedStyle | `special_for_inner_method_call_in_parentheses` | `consistent`, `align_parentheses`
EnforcedStyle | `consistent` | `consistent`, `align_parentheses`
IndentationWidth | `<none>` | Integer

## Layout/IndentHeredoc
Expand Down

0 comments on commit 90718e2

Please sign in to comment.