Skip to content

Commit

Permalink
Don't use absolutePathString in line baselines (#60)
Browse files Browse the repository at this point in the history
* Don't use absolutePathString

* Cleanup
  • Loading branch information
ZacSweers committed Nov 2, 2023
1 parent 2b36ce2 commit cfccea2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/kotlin/slack/cli/lint/LintBaselineMergerCli.kt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import io.github.detekt.sarif4k.Tool
import io.github.detekt.sarif4k.ToolComponent
import io.github.detekt.sarif4k.Version
import java.nio.file.Path
import kotlin.io.path.absolutePathString
import kotlin.io.path.createFile
import kotlin.io.path.createParentDirectories
import kotlin.io.path.deleteIfExists
Expand Down Expand Up @@ -227,7 +226,7 @@ public class LintBaselineMergerCli : CliktCommand("Merges multiple lint baseline
}

private fun LintIssues.LintIssue.toLocation(projectPath: Path): Location {
val uri = projectPath.resolve(location.file).relativeTo(projectDir).absolutePathString()
val uri = projectPath.resolve(location.file).relativeTo(projectDir).toString()
return Location(
physicalLocation =
PhysicalLocation(
Expand Down

0 comments on commit cfccea2

Please sign in to comment.