Skip to content

Commit addb27c

Browse files
erik-kroghStephan Brandauer
andauthored
deduplicate "%"
Co-authored-by: Stephan Brandauer <kaeluka@github.com>
1 parent 1407b49 commit addb27c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ql/ql/src/queries/style/docs/PredicateDocs.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ where
3030
message = "The QLDoc for a predicate with a result should start with 'Gets'."
3131
or
3232
not exists(pred.getReturnTypeExpr()) and
33-
not docLines(pred).matches(["Holds" + " %", "INTERNAL%", "DEPRECATED%", "EXPERIMENTAL%"]) and
33+
not docLines(pred).matches(["Holds ", "INTERNAL", "DEPRECATED", "EXPERIMENTAL"] + "%") and
3434
message = "The QLDoc for a predicate without a result should start with 'Holds'."
3535
)
3636
select pred.getQLDoc(), message

0 commit comments

Comments
 (0)