mirror of
https://github.com/jlengrand/detekt.git
synced 2026-03-10 08:11:23 +00:00
Integrate SARIF report with Github code scanning (#3359)
* Integrate SARIF report with Github Actions * Simplify workflow setup * Set OriginalUriBaseIds in output report
This commit is contained in:
@@ -35,7 +35,7 @@ open class KtCompiler(
|
||||
|
||||
return psiFile.apply {
|
||||
putUserData(LINE_SEPARATOR, lineSeparator)
|
||||
val normalizedBasePath = basePath?.normalize()
|
||||
val normalizedBasePath = basePath?.toAbsolutePath()?.normalize()
|
||||
normalizedBasePath?.relativize(normalizedAbsolutePath)?.let { relativePath ->
|
||||
putUserData(BASE_PATH, normalizedBasePath.toAbsolutePath().toString())
|
||||
putUserData(RELATIVE_PATH, relativePath.toString())
|
||||
|
||||
Reference in New Issue
Block a user