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
8 changes: 8 additions & 0 deletions src/cfengine_cli/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,14 @@ def _lint_block_name(node: Node, state: State, location: str, syntax_data: Synta
raise ValidationError(
f"Convention: Bundle name should be lowercase {location}", node
)
if (
state.strict
and node.type == "body_block_name"
and _text(node) != _text(node).lower()
):
raise ValidationError(
f"Convention: Body name should be lowercase {location}", node
)
if node.type == "promise_block_name" and _text(node) != _text(node).lower():
raise ValidationError(
f"Convention: Promise type should be lowercase {location}", node
Expand Down
Loading