Merge pull request #86 from TouchInstinct/detekt
Fix file path in Detekt reports
This commit is contained in:
commit
a17eabbe42
|
|
@ -162,10 +162,7 @@ appendKotlinErrors = { count, checkstyleFile ->
|
|||
}
|
||||
count++
|
||||
|
||||
def error = errorNode.attribute("source")
|
||||
def rootDir = project.rootDir.toString()
|
||||
def rootDirWithoutAppName = rootDir.substring(0, rootDir.lastIndexOf("/") + 1)
|
||||
appendError(count, "Detekt", "${rootDirWithoutAppName}${fileNode.attribute("name")}", errorNode.attribute("line"), error, "", errorNode.attribute("message"))
|
||||
appendError(count, "Detekt", fileNode.attribute("name"), errorNode.attribute("line"), errorNode.attribute("source"), "", errorNode.attribute("message"))
|
||||
}
|
||||
}
|
||||
return count
|
||||
|
|
@ -368,4 +365,4 @@ dependencies {
|
|||
checkstyle 'ru.touchin:checkstyle:7.6.2-fork'
|
||||
|
||||
pngtastic 'com.github.depsypher:pngtastic:1.2'
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue