mirror of
https://github.com/github/codeql.git
synced 2025-12-22 19:56:32 +01:00
Kotlin: Remove some noisy diagnostics
This commit is contained in:
@@ -20,8 +20,6 @@ class LinesOfCode(
|
|||||||
fun linesOfCodeInFile(id: Label<DbFile>) {
|
fun linesOfCodeInFile(id: Label<DbFile>) {
|
||||||
val ktFile = psi2Ir.getKtFile(file)
|
val ktFile = psi2Ir.getKtFile(file)
|
||||||
if (ktFile == null) {
|
if (ktFile == null) {
|
||||||
logger.warnElement("Cannot find PSI for file", file)
|
|
||||||
println("No KtFile")
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
linesOfCodeInPsi(id, ktFile, file)
|
linesOfCodeInPsi(id, ktFile, file)
|
||||||
@@ -30,8 +28,6 @@ class LinesOfCode(
|
|||||||
fun linesOfCodeInDeclaration(d: IrDeclaration, id: Label<out DbSourceline>) {
|
fun linesOfCodeInDeclaration(d: IrDeclaration, id: Label<out DbSourceline>) {
|
||||||
val p = psi2Ir.findPsiElement(d, file)
|
val p = psi2Ir.findPsiElement(d, file)
|
||||||
if (p == null) {
|
if (p == null) {
|
||||||
logger.warnElement("Cannot find PSI for declaration: " + d.javaClass, d)
|
|
||||||
println("No p")
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
linesOfCodeInPsi(id, p, d)
|
linesOfCodeInPsi(id, p, d)
|
||||||
|
|||||||
Reference in New Issue
Block a user