mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
Java: Autoformat most queries.
This commit is contained in:
@@ -9,14 +9,15 @@
|
||||
* @id java/similar-lines-per-file
|
||||
* @tags testability
|
||||
*/
|
||||
|
||||
import external.CodeDuplication
|
||||
|
||||
from File f, int n
|
||||
where n = count(int line |
|
||||
exists(SimilarBlock d | d.sourceFile() = f |
|
||||
line in [d.sourceStartLine()..d.sourceEndLine()] and
|
||||
not whitelistedLineForDuplication(f, line)
|
||||
where
|
||||
n = count(int line |
|
||||
exists(SimilarBlock d | d.sourceFile() = f |
|
||||
line in [d.sourceStartLine() .. d.sourceEndLine()] and
|
||||
not whitelistedLineForDuplication(f, line)
|
||||
)
|
||||
)
|
||||
)
|
||||
select f, n
|
||||
order by n desc
|
||||
select f, n order by n desc
|
||||
|
||||
Reference in New Issue
Block a user