diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c6e40c0746..1d145c0d3f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ ### Changes +* [#7465](https://github.com/rubocop-hq/rubocop/pull/7465): Add `os` to allowed names of `Naming/UncommunicativeMethodParamName` cop in default config. ([@nijikon][]) * [#7446](https://github.com/rubocop-hq/rubocop/issues/7446): Add `merge` to list of non-mutating methods. ([@cstyles][]) * [#7077](https://github.com/rubocop-hq/rubocop/issues/7077): Rename `Unneeded*` cops to `Redundant*` (e.g., `Style/UnneededPercentQ` becomes `Style/RedundantPercentQ`). ([@scottmatthewman][]) diff --git a/config/default.yml b/config/default.yml index 486a9a863eb..85dcaf50773 100644 --- a/config/default.yml +++ b/config/default.yml @@ -2075,6 +2075,7 @@ Naming/UncommunicativeMethodParamName: - at - ip - db + - os # Blacklisted names that will register an offense ForbiddenNames: [] diff --git a/manual/cops_naming.md b/manual/cops_naming.md index 80be9b7648d..a48227f844b 100644 --- a/manual/cops_naming.md +++ b/manual/cops_naming.md @@ -663,7 +663,7 @@ Name | Default value | Configurable values --- | --- | --- MinNameLength | `3` | Integer AllowNamesEndingInNumbers | `true` | Boolean -AllowedNames | `io`, `id`, `to`, `by`, `on`, `in`, `at`, `ip`, `db` | Array +AllowedNames | `io`, `id`, `to`, `by`, `on`, `in`, `at`, `ip`, `db`, `os` | Array ForbiddenNames | `[]` | Array ## Naming/VariableName