Add `ip` to the list of `BlockParameterName#allowed_names`

This commit is contained in:
Sijawusz Pur Rahnama 2023-11-12 11:59:06 +01:00
parent 06952fc7d3
commit 0a2609c1b4
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ module Ameba::Rule::Naming
# Enabled: true
# MinNameLength: 3
# AllowNamesEndingInNumbers: true
# AllowedNames: [_, e, i, j, k, v, x, y, ex, io, ws, op, tx, id, k1, k2, v1, v2]
# AllowedNames: [_, e, i, j, k, v, x, y, ex, io, ws, op, tx, id, ip, k1, k2, v1, v2]
# ForbiddenNames: []
# ```
class BlockParameterName < Base
@ -28,7 +28,7 @@ module Ameba::Rule::Naming
description "Disallows non-descriptive block parameter names"
min_name_length 3
allow_names_ending_in_numbers true
allowed_names %w[_ e i j k v x y ex io ws op tx id k1 k2 v1 v2]
allowed_names %w[_ e i j k v x y ex io ws op tx id ip k1 k2 v1 v2]
forbidden_names %w[]
end