Skip to content

Commit

Permalink
Fix isolated projects compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszkwiecinski committed Aug 18, 2024
1 parent b516e23 commit 4bc12a2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ public class KtlintGradlePlugin : Plugin<Project> {
val ktlintConfiguration = createKtlintConfiguration(pluginExtension)
val ruleSetConfiguration = createRuleSetConfiguration(ktlintConfiguration)
val reportersConfiguration = createReportersConfiguration(ktlintConfiguration)
val recognisedEditorConfigs = generateSequence(project) { it.parent }
.map { it.layout.projectDirectory.file(".editorconfig").asFile }
val recognisedEditorConfigs = generateSequence(projectDir) { if (it == rootProject.projectDir) null else it.parentFile }
.map { it.resolve(".editorconfig") }
.toList()

tasks.register("validateEditorConfigForKtlint", CheckEditorConfigTask::class.java) {
Expand Down

0 comments on commit 4bc12a2

Please sign in to comment.