QL: show recommendation queries by default, and remove the MissingQLDoc query

This commit is contained in:
Erik Krogh Kristensen
2022-01-18 13:21:07 +01:00
parent be0c26f83d
commit ea7945bac1
2 changed files with 1 additions and 25 deletions

View File

@@ -12,6 +12,7 @@
problem.severity:
- error
- warning
- recommendation
- exclude:
deprecated: //
- exclude:

View File

@@ -1,25 +0,0 @@
/**
* @name Missing QLDoc.
* @description Library classes should have QLDoc.
* @kind problem
* @problem.severity recommendation
* @id ql/missing-qldoc
* @tags maintainability
* @precision high
*/
import ql
from File f, Class c
where
f = c.getLocation().getFile() and
not exists(c.getQLDoc()) and // no QLDoc
f.getExtension() = "qll" and // in a library
not c.isPrivate() and // class is public
not exists(Module m |
m.getAMember*() = c and
m.isPrivate() // modules containing the class are public
) and
not exists(c.getAliasType()) and // class is not just an alias
not f.getParentContainer*().getBaseName().toLowerCase() = ["internal", "experimental", "test"] // exclusions
select c, "This library class should have QLDoc."