We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7cbe7a7 + f8f0652 commit 89953a6Copy full SHA for 89953a6
1 file changed
src/cfengine_cli/lint.py
@@ -583,7 +583,7 @@ def _lint_promise_guard(
583
"""Check that a promise type guard (e.g. `vars:`) for deprecation or unknown type."""
584
assert _text(node) and len(_text(node)) > 1 and _text(node)[-1] == ":"
585
promise_type = _text(node)[0:-1]
586
- if promise_type in syntax_data.DEPRECATED_PROMISE_TYPES:
+ if state.strict and promise_type in syntax_data.DEPRECATED_PROMISE_TYPES:
587
raise ValidationError(
588
f"Deprecation: Promise type '{promise_type}' is deprecated {location}",
589
node,
0 commit comments