File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed
main/kotlin/org/jlleitschuh/gradle/ktlint/worker
test/kotlin/org/jlleitschuh/gradle/ktlint Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
7
7
8
8
## [ Unreleased]
9
9
10
+ - fix "additionalEditorconfig not supported until ktlint 0.49" warning [ #712 ] ( https://github.com/JLLeitschuh/ktlint-gradle/pull/712 )
10
11
- update latest version text file manually [ #709 ] ( https://github.com/JLLeitschuh/ktlint-gradle/pull/709 )
11
12
- Improve error logging [ #711 ] ( https://github.com/JLLeitschuh/ktlint-gradle/pull/711 )
12
13
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ abstract class KtLintWorkAction : WorkAction<KtLintWorkAction.KtLintWorkParamete
40
40
logger.warn(" additionalEditorconfigFile no longer supported in ktlint 0.47+" )
41
41
}
42
42
if (parameters.additionalEditorconfig.isPresent &&
43
+ parameters.additionalEditorconfig.get().isNotEmpty() &&
43
44
parameters.ktLintVersion.map { SemVer .parse(it) }.get() < SemVer (0 , 49 )
44
45
) {
45
46
logger.warn(" additionalEditorconfig not supported until ktlint 0.49" )
Original file line number Diff line number Diff line change @@ -94,10 +94,12 @@ class KtLintSupportedVersionsTest : AbstractPluginTest() {
94
94
buildAndFail(CHECK_PARENT_TASK_NAME ) {
95
95
assertThat(task(" :$mainSourceSetCheckTaskName " )?.outcome).isEqualTo(TaskOutcome .FAILED )
96
96
assertThat(output).contains(" additionalEditorconfigFile no longer supported in ktlint 0.47+" )
97
+ assertThat(output).doesNotContain(" additionalEditorconfig not supported until ktlint 0.49" )
97
98
}
98
99
} else {
99
100
build(CHECK_PARENT_TASK_NAME ) {
100
101
assertThat(task(" :$mainSourceSetCheckTaskName " )?.outcome).isEqualTo(TaskOutcome .SUCCESS )
102
+ assertThat(output).doesNotContain(" additionalEditorconfig not supported until ktlint 0.49" )
101
103
}
102
104
}
103
105
}
You can’t perform that action at this time.
0 commit comments