Skip to content

Commit f7552a7

Browse files
committed
JS: Add metric for number of types with qualified names
1 parent aa4237c commit f7552a7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* @name Types with qualified name
3+
* @description The number of type annotations with a qualified name
4+
* @kind metric
5+
* @metricType project
6+
* @metricAggregate sum
7+
* @tags meta
8+
* @id js/meta/types-with-qualified-name
9+
*/
10+
11+
import javascript
12+
import meta.MetaMetrics
13+
14+
select projectRoot(), count(TypeAnnotation t | t.hasQualifiedName(_) or t.hasQualifiedName(_, _))

0 commit comments

Comments
 (0)