QL: Merge pull request #122 from github/aschackmull/library-annot

New query: Don't use library annotation.
This commit is contained in:
Mathias Vorreiter Pedersen
2021-10-15 12:56:22 +01:00
committed by GitHub

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."