diff --git a/CHANGELOG.md b/CHANGELOG.md index f2cfa4b82e3..7142d2aff43 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ * [#7636](https://github.com/rubocop-hq/rubocop/issues/7636): Remove `console` from `Lint/Debugger` to prevent false positives. ([@gsamokovarov][]) * [#7641](https://github.com/rubocop-hq/rubocop/issues/7641): **(Breaking)** Remove `Style/BracesAroundHashParameters` cop. ([@pocke][]) * Add the method name to highlight area of `Layout/EmptyLineBetweenDefs` to help provide more context. ([@rrosenblum][]) +* [#7652](https://github.com/rubocop-hq/rubocop/pull/7652): Allow `pp` to allowed names of `Naming/MethodParameterName` cop in default config. ([@masarakki][]) ## 0.79.0 (2020-01-06) @@ -4338,3 +4339,4 @@ [@gfyoung]: https://github.com/gfyoung [@Tietew]: https://github.com/Tietew [@hanachin]: https://github.com/hanachin +[@masarakki]: https://github.com/masarakki diff --git a/config/default.yml b/config/default.yml index 584a5aba313..f83c62bd6b9 100644 --- a/config/default.yml +++ b/config/default.yml @@ -2065,6 +2065,7 @@ Naming/MethodParameterName: - ip - db - os + - pp # Forbidden names that will register an offense ForbiddenNames: [] diff --git a/manual/cops_naming.md b/manual/cops_naming.md index 1b181b2dc1f..e0122b5eb92 100644 --- a/manual/cops_naming.md +++ b/manual/cops_naming.md @@ -546,7 +546,7 @@ Name | Default value | Configurable values --- | --- | --- MinNameLength | `3` | Integer AllowNamesEndingInNumbers | `true` | Boolean -AllowedNames | `io`, `id`, `to`, `by`, `on`, `in`, `at`, `ip`, `db`, `os` | Array +AllowedNames | `io`, `id`, `to`, `by`, `on`, `in`, `at`, `ip`, `db`, `os`, `pp` | Array ForbiddenNames | `[]` | Array ## Naming/PredicateName