Skip to content

Commit

Permalink
allow-parameter-pp
Browse files Browse the repository at this point in the history
  • Loading branch information
masarakki committed Jan 31, 2020
1 parent b08092b commit c74c060
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -4337,3 +4338,4 @@
[@gfyoung]: https://github.com/gfyoung
[@Tietew]: https://github.com/Tietew
[@hanachin]: https://github.com/hanachin
[@masarakki]: https://github.com/masarakki
1 change: 1 addition & 0 deletions config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2065,6 +2065,7 @@ Naming/MethodParameterName:
- ip
- db
- os
- pp
# Forbidden names that will register an offense
ForbiddenNames: []

Expand Down
2 changes: 1 addition & 1 deletion manual/cops_naming.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c74c060

Please sign in to comment.