23 lines
1.8 KiB
Plaintext
23 lines
1.8 KiB
Plaintext
# ---------------------------------------------------------------------------
|
|
# JSON primitives
|
|
# ---------------------------------------------------------------------------
|
|
ws ::= [ \t\n\r]*
|
|
string ::= "\"" ([^"\\\x7F\x00-\x1F] | "\\" (["\\/bfnrt] | "u" [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F]))* "\""
|
|
number ::= "-"? ([0-9] | [1-9] [0-9]*) ("." [0-9]+)? ([eE] [-+]? [0-9]+)?
|
|
integer ::= "-"? ([0-9] | [1-9] [0-9]*)
|
|
boolean ::= "true" | "false"
|
|
null ::= "null"
|
|
any-value ::= string | number | boolean | null | any-object | any-array
|
|
any-object ::= "{" ws (string ws ":" ws any-value (ws "," ws string ws ":" ws any-value)*)? ws "}"
|
|
any-array ::= "[" ws (any-value (ws "," ws any-value)*)? ws "]"
|
|
|
|
# --- whetstone_apply_best_practice_pack ---
|
|
root ::= "{" ws "\"tool\"" ws ":" ws "\"whetstone_apply_best_practice_pack\"" ws "," ws "\"arguments\"" ws ":" ws whetstone-apply-best-practice-pack-args-obj-9 ws "}"
|
|
|
|
whetstone-apply-best-practice-pack-args-high_severity_findings-pair-2 ::= "\"high_severity_findings\"" ws ":" ws integer
|
|
whetstone-apply-best-practice-pack-args-obj-9 ::= "{" ws whetstone-apply-best-practice-pack-args-pack_id-pair-4 (ws "," ws whetstone-apply-best-practice-pack-args-opt-10)* ws "}"
|
|
whetstone-apply-best-practice-pack-args-opt-10 ::= whetstone-apply-best-practice-pack-args-high_severity_findings-pair-2 | whetstone-apply-best-practice-pack-args-target_tenant-pair-6 | whetstone-apply-best-practice-pack-args-unresolved_findings-pair-8
|
|
whetstone-apply-best-practice-pack-args-pack_id-pair-4 ::= "\"pack_id\"" ws ":" ws string
|
|
whetstone-apply-best-practice-pack-args-target_tenant-pair-6 ::= "\"target_tenant\"" ws ":" ws string
|
|
whetstone-apply-best-practice-pack-args-unresolved_findings-pair-8 ::= "\"unresolved_findings\"" ws ":" ws boolean
|