Skip to content

Commit

Permalink
fix detekt issues
Browse files Browse the repository at this point in the history
  • Loading branch information
David Hasani committed Aug 5, 2024
1 parent 6d8be48 commit da907b6
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,14 @@ data class CodeModernizerSessionContext(
}
}
if (detectedPaths.size > 0) {
val warningMessage = "We detected ${detectedPaths.size} absolute ${if (detectedPaths.size == 1) "path" else "paths"} (${detectedPaths.joinToString(", ")}) in this file: ${buildFile.path.substringAfterLast(File.separator)}, which may cause issues during our backend build. You will see error logs open if this happens."
val warningMessage = "We detected ${detectedPaths.size} absolute ${if (detectedPaths.size == 1) "path" else "paths"} " +
"(${detectedPaths.joinToString(", ")}) in this file: ${buildFile.path.substringAfterLast(File.separator)}, " +
"which may cause issues during our backend build. You will see error logs open if this happens."
notifyStickyWarn(
"Absolute path detected",
warningMessage,
)
LOG.info("CodeTransformation: absolute path potentially in build file")
LOG.info { "CodeTransformation: absolute path potentially in build file" }
return true
}
}
Expand Down

0 comments on commit da907b6

Please sign in to comment.