diff --git a/gradle/commonStaticAnalysis.gradle b/gradle/commonStaticAnalysis.gradle index 951f7e3..4d11e42 100644 --- a/gradle/commonStaticAnalysis.gradle +++ b/gradle/commonStaticAnalysis.gradle @@ -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' -} \ No newline at end of file +}