Skip to content

Commit

Permalink
[Fix rubocop#9104] Preset some stdlib method names for `Naming/Variab…
Browse files Browse the repository at this point in the history
…leNumber`

Fixes rubocop#9104

This PR presets some stdlib method names for `AllowedIdentifiers` of
`Naming/VariableNumber`.
  • Loading branch information
koic committed Nov 26, 2020
1 parent fa0c3f0 commit 1b6a6fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
@@ -0,0 +1 @@
* [#9104](https://github.com/rubocop-hq/rubocop/issues/9104): Preset some stdlib method names for `Naming/VariableNumber`. ([@koic][])
8 changes: 7 additions & 1 deletion config/default.yml
Expand Up @@ -2466,7 +2466,13 @@ Naming/VariableNumber:
- non_integer
CheckMethodNames: true
CheckSymbols: true
AllowedIdentifiers: []
AllowedIdentifiers:
- capture3 # Open3.capture3
- iso8601 # Time#iso8601
- rfc1123_date # CGI.rfc1123_date
- rfc822 # Time#rfc822
- rfc2822 # Time#rfc2822
- rfc3339 # DateTime.rfc3339

#################### Security ##############################

Expand Down

0 comments on commit 1b6a6fe

Please sign in to comment.