mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Add op
to the list of BlockParameterName#allowed_names
This commit is contained in:
parent
f984d83b05
commit
06952fc7d3
1 changed files with 2 additions and 2 deletions
|
@ -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, tx, id, k1, k2, v1, v2]
|
||||
# AllowedNames: [_, e, i, j, k, v, x, y, ex, io, ws, op, tx, id, 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 tx id k1 k2 v1 v2]
|
||||
allowed_names %w[_ e i j k v x y ex io ws op tx id k1 k2 v1 v2]
|
||||
forbidden_names %w[]
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue