We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ed7ba40 + 458b913 commit c0eac47Copy full SHA for c0eac47
1 file changed
src/cfengine_cli/lint.py
@@ -40,7 +40,7 @@
40
from cfbs.utils import find
41
from cfengine_cli.utils import UserError
42
43
-LINT_EXTENSIONS = (".cf", ".json")
+LINT_EXTENSIONS = (".cf", ".cf.sub", ".json")
44
DEFAULT_NAMESPACE = "default"
45
VARS_TYPES = {
46
"data",
@@ -1012,7 +1012,7 @@ def _lint_main(
1012
if filename.endswith(".json"):
1013
errors += _lint_json_selector(filename)
1014
continue
1015
- assert filename.endswith(".cf")
+ assert filename.endswith((".cf", ".cf.sub"))
1016
policy_file = PolicyFile(filename, snippet)
1017
r = _check_syntax(policy_file, state)
1018
errors += r
0 commit comments