Files
codeql/javascript/ql/src/Metrics/FLinesOfDuplicatedCode.ql
2021-03-25 15:20:59 +00:00

21 lines
532 B
Plaintext

/**
* @deprecated
* @name Duplicated lines in files
* @description The number of lines in a file (including code, comment and whitespace lines)
* occurring in a block of lines that is duplicated at least once somewhere else.
* @kind treemap
* @treemap.warnOn highValues
* @metricType file
* @metricAggregate avg sum max
* @id js/duplicated-lines-in-files
* @tags testability
* duplicate-code
* non-attributable
*/
import javascript
from File f, int n
where none()
select f, n order by n desc