mirror of
https://github.com/github/codeql.git
synced 2026-02-24 10:53:49 +01:00
18 lines
416 B
Plaintext
18 lines
416 B
Plaintext
/**
|
|
* @name Annotations
|
|
* @description Check that annotation ids are distinct
|
|
*/
|
|
|
|
import default
|
|
|
|
private
|
|
int numberOfLocations(Annotation a) {
|
|
result = count(a.getLocation())
|
|
}
|
|
|
|
from Annotation a, RefType c, Location loc
|
|
where c.hasQualifiedName("annotations", "C")
|
|
and c.getAnAnnotation() = a.getParent*()
|
|
and loc = a.getLocation()
|
|
select loc.getStartLine(), loc.getStartColumn(), a, numberOfLocations(a)
|