Skip to content

Commit 08c703f

Browse files
committed
exclude private predicates
1 parent 8ff2992 commit 08c703f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ string docLines(Predicate pred) {
1717

1818
from Predicate pred, string message
1919
where
20+
not pred.isPrivate() and
2021
// only considering qldocs that look like a class-doc, to avoid reporting way too much.
2122
docLines(pred).matches(["A", "An", "The"] + " %") and // looks like a class doc.
2223
not pred instanceof NewTypeBranch and // <- these are actually kinda class-like.

0 commit comments

Comments
 (0)