diff --git a/ql/src/queries/style/LibraryAnnotation.ql b/ql/src/queries/style/LibraryAnnotation.ql new file mode 100644 index 00000000000..cf4a4bc8232 --- /dev/null +++ b/ql/src/queries/style/LibraryAnnotation.ql @@ -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."