mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
Exclude queries without precision
This commit is contained in:
@@ -15,6 +15,9 @@ predicate missingSecuritySeverity(QLDoc doc) {
|
||||
exists(string securityTag | securityTag = s.splitAt("@") |
|
||||
securityTag.matches("tags%security%")
|
||||
) and
|
||||
exists(string precisionTag | precisionTag = s.splitAt("@") |
|
||||
precisionTag.matches("precision %")
|
||||
) and
|
||||
not exists(string securitySeverity | securitySeverity = s.splitAt("@") |
|
||||
securitySeverity.matches("security-severity %")
|
||||
)
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* @name Some query
|
||||
* @description Some description
|
||||
* @kind problem
|
||||
* @problem.severity warning
|
||||
* @id ql/some-query
|
||||
* @tags quality
|
||||
* security
|
||||
*/
|
||||
|
||||
import ql
|
||||
|
||||
from Class c
|
||||
select c
|
||||
Reference in New Issue
Block a user