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 Jul 21, 2024
1 parent 87cf0bc commit 5c306bb
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 5c306bb

Please sign in to comment.