JS: Add metric for number of types with qualified names

This commit is contained in:
Asger Feldthaus
2020-07-02 12:42:31 +01:00
parent aa4237c27c
commit f7552a77c3

View 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(_, _))