We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b0b7ac commit 67dbcb4Copy full SHA for 67dbcb4
rule_schema_v1.yaml
@@ -821,6 +821,12 @@ properties:
821
- message
822
- languages
823
- severity
824
+ # This is a JSON Schema-ism to make the error messages report better.
825
+ # It means "if we satisfy the sub-schema of requiring taint, then require taint.
826
+ # Otherwise, require pattern-sinks and pattern-sources".
827
+ # It basically just makes sure that we only report that we expected to see taint if
828
+ # taint is actually there, so our error messages don't report needing `taint` when
829
+ # it's actually an old-style syntax rule.
830
if:
831
required:
832
- taint
0 commit comments