From 90718e2c311294a5f9dc894f6b298085410a1b80 Mon Sep 17 00:00:00 2001 From: Ted Johansson Date: Tue, 30 Apr 2019 10:55:33 +0800 Subject: [PATCH] [Fix #6992] Fix unknown default configuration for Layout/IndentFirstParameter Looks like most likely a mistake when copying the configuration from `Layout/IndentFirstArgument` to `Layout/IndentFirstParameter`. --- CHANGELOG.md | 1 + config/default.yml | 2 +- manual/cops_layout.md | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 43f072960c9..8cdf0322749 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/config/default.yml b/config/default.yml index 616f24e5a53..721d1ba40d6 100644 --- a/config/default.yml +++ b/config/default.yml @@ -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 diff --git a/manual/cops_layout.md b/manual/cops_layout.md index f8af4b1e268..c3bc3e42c31 100644 --- a/manual/cops_layout.md +++ b/manual/cops_layout.md @@ -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 | `` | Integer ## Layout/IndentHeredoc