Skip to content

Commit 510f825

Browse files
committed
QL: New query: Don't use library annotation.
1 parent 4238a5b commit 510f825

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* @name Use of deprecated annotation
3+
* @description The library annotation is deprecated
4+
* @kind problem
5+
* @problem.severity warning
6+
* @id ql/deprecated-annotation
7+
* @tags maintainability
8+
* @precision very-high
9+
*/
10+
11+
import ql
12+
13+
from AstNode n
14+
where n.hasAnnotation("library") and not n.hasAnnotation("deprecated")
15+
select n, "Don't use the library annotation."

0 commit comments

Comments
 (0)