New query: Don't use library annotation.

This commit is contained in:
Anders Schack-Mulligen
2021-10-15 13:35:25 +02:00
parent bd5243884a
commit b0bbbc54d0

View File

@@ -0,0 +1,15 @@
/**
* @name Use of deprecated annotation
* @description The library annotation is deprecated
* @kind problem
* @problem.severity warning
* @id ql/deprecated-annotation
* @tags maintainability
* @precision very-high
*/
import ql
from AstNode n
where n.hasAnnotation("library") and not n.hasAnnotation("deprecated")
select n, "Don't use the library annotation."