mirror of
https://github.com/github/codeql.git
synced 2026-03-18 05:26:45 +01:00
16 lines
416 B
Plaintext
16 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)
|