We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4238a5b + 510f825 commit ed15ee8Copy full SHA for ed15ee8
ql/src/queries/style/LibraryAnnotation.ql
@@ -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