From c74c0602a7212cd7479e8326055cba39f2b4d8c2 Mon Sep 17 00:00:00 2001 From: masarakki Date: Wed, 15 Jan 2020 13:28:42 +0900 Subject: [PATCH] allow-parameter-pp --- CHANGELOG.md | 2 ++ config/default.yml | 1 + manual/cops_naming.md | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ef2acb73f07..75e45da3ca1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,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) @@ -4337,3 +4338,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