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": {
"nameOfObjective": "^[a-z]+(_[a-z]+)*$"
}
}
👍 Good
scoreboard objectives add foo
scoreboard objectives add foo_bar
👎 Bad
scoreboard objectives add FooBar