mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
JS: Remove the other summary queries
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
/**
|
||||
* @name Total source files
|
||||
* @description The total number of source files.
|
||||
* @kind metric
|
||||
* @id js/metrics/files
|
||||
*/
|
||||
|
||||
import javascript
|
||||
|
||||
select count(File f | not f.getATopLevel().isExterns())
|
||||
@@ -1,10 +0,0 @@
|
||||
/**
|
||||
* @name Total lines of text
|
||||
* @description The total number of lines of text across all source files.
|
||||
* @kind metric
|
||||
* @id js/metrics/lines
|
||||
*/
|
||||
|
||||
import javascript
|
||||
|
||||
select sum(File f | not f.getATopLevel().isExterns() | f.getNumberOfLines())
|
||||
@@ -1,12 +0,0 @@
|
||||
/**
|
||||
* @name Lines of code per source file
|
||||
* @description The number of lines of code for each source file.
|
||||
* @kind metric
|
||||
* @id js/metrics/lines-of-code-per-file
|
||||
*/
|
||||
|
||||
import javascript
|
||||
|
||||
from File f
|
||||
where not f.getATopLevel().isExterns()
|
||||
select f, f.getNumberOfLinesOfCode()
|
||||
@@ -1,12 +0,0 @@
|
||||
/**
|
||||
* @name Lines of text per source file
|
||||
* @description The number of lines of text for each source file.
|
||||
* @kind metric
|
||||
* @id js/metrics/lines-per-file
|
||||
*/
|
||||
|
||||
import javascript
|
||||
|
||||
from File f
|
||||
where not f.getATopLevel().isExterns()
|
||||
select f, f.getNumberOfLines()
|
||||
Reference in New Issue
Block a user