Skip to content

Commit 67b65b6

Browse files
authored
Merge pull request #122 from github/aschackmull/library-annot
New query: Don't use library annotation.
2 parents bd52438 + b0bbbc5 commit 67b65b6

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

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)