mirror of
https://github.com/github/codeql.git
synced 2026-02-09 11:41:06 +01:00
16 lines
370 B
Plaintext
16 lines
370 B
Plaintext
/**
|
|
* @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."
|