Skip to content

Commit

Permalink
fix the fix...
Browse files Browse the repository at this point in the history
  • Loading branch information
3flex committed Aug 23, 2023
1 parent 50edd20 commit 46d1b40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class DetektAnalysisExtension(
}
val matchers = excludes.map { FileSystems.getDefault().getPathMatcher("glob:$it") }
val (includedFiles, excludedFiles) = files.partition { file ->
matchers.none { it.matches(rootPath.relativeTo(Path(file.virtualFilePath))) }
matchers.none { it.matches(Path(file.virtualFilePath).relativeTo(rootPath)) }
}
log.info("Running detekt on module '${module.name.asString()}'")
excludedFiles.forEach { log.info("File excluded by filter: ${it.virtualFilePath}") }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ open class KtCompiler(
this.lineSeparator = lineSeparator
val normalizedBasePath = basePath.absolute().normalize()
this.basePath = normalizedBasePath.absolute()
this.relativePath = normalizedBasePath.relativeTo(normalizedAbsolutePath)
this.relativePath = normalizedAbsolutePath.relativeTo(normalizedBasePath)
}
}
}
Expand Down

0 comments on commit 46d1b40

Please sign in to comment.