rubocop: Set inherit_mode for allowed Naming/MethodParameterName

- As I was looking through the RuboCop configs for
  `Naming/MethodParameterName`, since there was a fairly long-standing
  TODO here, I found that in the default RuboCop configs the method
  names `to` and `io` are
  [allowed by default](41a8249b35/config/default.yml (L2794)).
- But we weren't inheriting those allowed names correctly from the
  default configuration. This fixes that so that we get future
  enhancements automatically for this particular cop allowlist.
This commit is contained in:
Issy Long 2022-10-30 21:43:56 +00:00
parent c53b14e955
commit c4e6a46271
No known key found for this signature in database
GPG Key ID: 8247C390DADC67D4

View File

@ -371,6 +371,9 @@ Metrics/PerceivedComplexity:
# allow those that are standard
# TODO: try to remove some of these
Naming/MethodParameterName:
inherit_mode:
merge:
- AllowedNames
AllowedNames:
- "a"
- "b"
@ -383,14 +386,12 @@ Naming/MethodParameterName:
- "ff"
- "fn"
- "id"
- "io"
- "o"
- "p"
- "pr"
- "r"
- "rb"
- "s"
- "to"
- "v"
# GitHub diff UI wraps beyond 118 characters