JSON Format
-
(string) A regex specifying the pattern of the name. The name will be considered valid if any part of it matches the regex, so use
^
and$
if you want the full name to be tested.
Example 1. Snake case
Config
{
"lint": {
"nameOfScoreHolder": "^[a-z]+(_[a-z]+)*$"
}
}
👍 Good
execute if score foo objective matches 1 run say hello world!
execute if score foo_bar objective matches 1 run say hello world!
👎 Bad
execute if score FooBar objective matches 1 run say hello world!