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

22 lines
550 B
Plaintext

/**
* @deprecated
* @name Similar 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 similar to a block of lines seen
* somewhere else.
* @kind treemap
* @treemap.warnOn highValues
* @metricType file
* @metricAggregate avg sum max
* @id js/similar-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