Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/cfengine_cli/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
from cfbs.utils import find
from cfengine_cli.utils import UserError

LINT_EXTENSIONS = (".cf", ".json")
LINT_EXTENSIONS = (".cf", ".cf.sub", ".json")
DEFAULT_NAMESPACE = "default"
VARS_TYPES = {
"data",
Expand Down Expand Up @@ -1012,7 +1012,7 @@ def _lint_main(
if filename.endswith(".json"):
errors += _lint_json_selector(filename)
continue
assert filename.endswith(".cf")
assert filename.endswith((".cf", ".cf.sub"))
policy_file = PolicyFile(filename, snippet)
r = _check_syntax(policy_file, state)
errors += r
Expand Down
Loading