mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-02 02:12:39 +00:00
Add ip
to the list of BlockParameterName#allowed_names
This commit is contained in:
parent
06952fc7d3
commit
0a2609c1b4
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ module Ameba::Rule::Naming
|
||||||
# Enabled: true
|
# Enabled: true
|
||||||
# MinNameLength: 3
|
# MinNameLength: 3
|
||||||
# AllowNamesEndingInNumbers: true
|
# 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: []
|
# ForbiddenNames: []
|
||||||
# ```
|
# ```
|
||||||
class BlockParameterName < Base
|
class BlockParameterName < Base
|
||||||
|
@ -28,7 +28,7 @@ module Ameba::Rule::Naming
|
||||||
description "Disallows non-descriptive block parameter names"
|
description "Disallows non-descriptive block parameter names"
|
||||||
min_name_length 3
|
min_name_length 3
|
||||||
allow_names_ending_in_numbers true
|
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[]
|
forbidden_names %w[]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue