Skip to content

Commit

Permalink
Merge pull request #7652 from masarakki/allow-paremeter-pp
Browse files Browse the repository at this point in the history
allow paremeter name `pp` for `pretty_print`
  • Loading branch information
koic committed Jan 31, 2020
2 parents 8fd36f0 + c74c060 commit d67ba35
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -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)

Expand Down Expand Up @@ -4338,3 +4339,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
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
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 d67ba35

Please sign in to comment.