-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove all punctuation from anchors in policies.md
- Loading branch information
Showing
5 changed files
with
171 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# METADATA | ||
# title: " Title _wórds_ with-punct_uation_ !\"#$%&'()*+,./:;<=>?@[\\]^`{|}~mark " | ||
# description: This is only here to test and illustrate _punctuation_ / | ||
# Markdown handling | ||
# custom: | ||
# matchers: | ||
# kinds: | ||
# - apiGroups: | ||
# - "*" | ||
# kinds: | ||
# - Pod | ||
# labelSelector: | ||
# matchLabels: | ||
# _test_: "true" | ||
# parameters: | ||
# _param_name_: | ||
# type: array | ||
# items: | ||
# type: string | ||
package policy_markdown_punctuation | ||
|
||
import data.lib.core | ||
import future.keywords.contains | ||
import future.keywords.if | ||
|
||
policyID := "P0003" | ||
|
||
warn contains msg if { | ||
core.apiVersion == "foo/bar" | ||
msg := core.format_with_id("Title tester", policyID) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package policy_markdown_punctuation | ||
|
||
import future.keywords.if | ||
|
||
test_ignoreme if { | ||
count(warn) == 1 with input as {"apiVersion": "foo/bar"} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters