Skip to content

Commit c0eac47

Browse files
authored
Merge pull request #98 from olehermanse/lint
cfengine lint: Include .cf.sub files
2 parents ed7ba40 + 458b913 commit c0eac47

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/cfengine_cli/lint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
from cfbs.utils import find
4141
from cfengine_cli.utils import UserError
4242

43-
LINT_EXTENSIONS = (".cf", ".json")
43+
LINT_EXTENSIONS = (".cf", ".cf.sub", ".json")
4444
DEFAULT_NAMESPACE = "default"
4545
VARS_TYPES = {
4646
"data",
@@ -1012,7 +1012,7 @@ def _lint_main(
10121012
if filename.endswith(".json"):
10131013
errors += _lint_json_selector(filename)
10141014
continue
1015-
assert filename.endswith(".cf")
1015+
assert filename.endswith((".cf", ".cf.sub"))
10161016
policy_file = PolicyFile(filename, snippet)
10171017
r = _check_syntax(policy_file, state)
10181018
errors += r

0 commit comments

Comments
 (0)