deduplicate "%"

Co-authored-by: Stephan Brandauer <kaeluka@github.com>
This commit is contained in:
Erik Krogh Kristensen
2022-02-22 11:34:59 +01:00
committed by GitHub
parent 1407b49a8f
commit addb27c80e

View File

@@ -30,7 +30,7 @@ where
message = "The QLDoc for a predicate with a result should start with 'Gets'."
or
not exists(pred.getReturnTypeExpr()) and
not docLines(pred).matches(["Holds" + " %", "INTERNAL%", "DEPRECATED%", "EXPERIMENTAL%"]) and
not docLines(pred).matches(["Holds ", "INTERNAL", "DEPRECATED", "EXPERIMENTAL"] + "%") and
message = "The QLDoc for a predicate without a result should start with 'Holds'."
)
select pred.getQLDoc(), message