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
15 changes: 7 additions & 8 deletions app/cli/internal/policydevel/templates/example-policy.rego
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,14 @@ default ignore := false
# EO Common section, custom code below #
########################################
# Validates if the input is valid and can be understood by this policy
valid_input if {
true
# insert code here
}
valid_input := true

# insert code here

# If the input is valid, check for any policy violation here
default violations := []
#violations contains msg if {
# valid_input
# insert code here
#}

# violations contains msg if {
# valid_input
# insert code here

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's the linting error?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment should start with whitespace

# }
Loading