Update the puppet reserved names
Some checks failed
Lint / test (push) Waiting to run
CI / test (push) Has been cancelled

This commit is contained in:
Miguel Jacq 2026-06-16 16:44:10 +10:00
parent 33b9d44c55
commit 380a0b8ca2
Signed by: mig5
GPG key ID: 03906B4110AAD3B8

View file

@ -13,15 +13,35 @@ def _load_state(bundle_dir: str) -> Dict[str, Any]:
return json.load(f) return json.load(f)
# https://help.puppet.com/core/current/Content/PuppetCore/lang_reserved_words.htm
_RESERVED_PUPPET_NAMES = { _RESERVED_PUPPET_NAMES = {
"and",
"application", "application",
"class", "attr",
"case",
"component",
"consumes",
"default", "default",
"define", "define",
"elsif",
"environment",
"false",
"function",
"if",
"import", "import",
"in",
"inherits", "inherits",
"node", "node",
"or",
"private",
"produces",
"regexp",
"site", "site",
"true",
"type",
"undef",
"unit",
"unless",
} }