Skip to content

Commit 0ca59e3

Browse files
committed
fix(detekt-rules): Correctly determine the root project
This did not cause violations for nested projects because the rule was skipped in that case due to `pathPattern` not being matched. Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.io>
1 parent f893ace commit 0ca59e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

detekt-rules/src/main/kotlin/OrtPackageNaming.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class OrtPackageNaming(config: Config) : Rule(
5151

5252
// TODO: Find a better way to determine the project path. Unfortunately, `KtFile.project.basePath` is null.
5353
projectPath = generateSequence(root.absolutePath()) { it.parent }.find {
54-
it.resolve("build.gradle.kts").isRegularFile()
54+
it.resolve("settings.gradle.kts").isRegularFile()
5555
}
5656
}
5757

0 commit comments

Comments
 (0)