mirror of
https://github.com/github/codeql.git
synced 2026-05-04 05:05:12 +02:00
committed by
GitHub
parent
1407b49a8f
commit
addb27c80e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user