mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
JS: Add metric for number of types with qualified names
This commit is contained in:
14
javascript/ql/src/meta/types/TypesWithQualifiedName.ql
Normal file
14
javascript/ql/src/meta/types/TypesWithQualifiedName.ql
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* @name Types with qualified name
|
||||
* @description The number of type annotations with a qualified name
|
||||
* @kind metric
|
||||
* @metricType project
|
||||
* @metricAggregate sum
|
||||
* @tags meta
|
||||
* @id js/meta/types-with-qualified-name
|
||||
*/
|
||||
|
||||
import javascript
|
||||
import meta.MetaMetrics
|
||||
|
||||
select projectRoot(), count(TypeAnnotation t | t.hasQualifiedName(_) or t.hasQualifiedName(_, _))
|
||||
Reference in New Issue
Block a user