We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents da77d6e + 8a227cd commit 54fc795Copy full SHA for 54fc795
1 file changed
src/cfengine_cli/lint.py
@@ -658,6 +658,9 @@ def _lint_node(
658
promise_type_data = syntax_data.BUILTIN_PROMISE_TYPES.get(
659
state.promise_type, {}
660
)
661
+ if not promise_type_data:
662
+ # Custom promise type - we cannot validate attribute name here.
663
+ return 0
664
promise_type_attrs = promise_type_data.get("attributes", {})
665
if state.attribute_name not in promise_type_attrs:
666
_highlight_range(node, lines)
0 commit comments