Skip to content

Commit 0270ad0

Browse files
committed
1 parent 68e2139 commit 0270ad0

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

CHANGES.md

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ This document is intended for Spotless developers.
1010
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `1.27.0`).
1111

1212
## [Unreleased]
13+
### Changes
14+
* Bump default `ktlint` version to latest `1.0.0` -> `1.0.1`. ([#1855](https://github.com/diffplug/spotless/pull/1855))
1315

1416
## [2.42.0] - 2023-09-28
1517
### Added

lib/src/main/java/com/diffplug/spotless/kotlin/KtLintStep.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class KtLintStep {
3636
// prevent direct instantiation
3737
private KtLintStep() {}
3838

39-
private static final String DEFAULT_VERSION = "1.0.0";
39+
private static final String DEFAULT_VERSION = "1.0.1";
4040
static final String NAME = "ktlint";
4141
static final String MAVEN_COORDINATE_0_DOT = "com.pinterest:ktlint:";
4242
static final String MAVEN_COORDINATE_1_DOT = "com.pinterest.ktlint:ktlint-cli:";

plugin-gradle/CHANGES.md

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `3.27.0`).
44

55
## [Unreleased]
6+
### Changes
7+
* Bump default `ktlint` version to latest `1.0.0` -> `1.0.1`. ([#1855](https://github.com/diffplug/spotless/pull/1855))
68

79
## [6.22.0] - 2023-09-28
810
### Added

plugin-maven/CHANGES.md

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `1.27.0`).
44

55
## [Unreleased]
6+
### Changes
7+
* Bump default `ktlint` version to latest `1.0.0` -> `1.0.1`. ([#1855](https://github.com/diffplug/spotless/pull/1855))
68

79
### Added
810
* CompileSourceRoots and TestCompileSourceRoots are now respected as default includes. These properties are commonly set when adding extra source directories. ([#1846](https://github.com/diffplug/spotless/issues/1846))

testlib/src/test/java/com/diffplug/spotless/kotlin/KtLintStepTest.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ void works0_50_0() {
7878
void works1_0_0() {
7979
FormatterStep step = KtLintStep.create("1.0.0", TestProvisioner.mavenCentral());
8080
StepHarnessWithFile.forStep(this, step)
81-
.testResource("kotlin/ktlint/basic.dirty", "kotlin/ktlint/basic.clean")
82-
.testResourceExceptionMsg("kotlin/ktlint/unsolvable.dirty").isEqualTo("Error on line: 1, column: 1\n" +
83-
"rule: standard:no-empty-file\n" +
84-
"File 'unsolvable.dirty' should not be empty");
81+
.testResource("kotlin/ktlint/basic.dirty", "kotlin/ktlint/basic.clean")
82+
.testResourceExceptionMsg("kotlin/ktlint/unsolvable.dirty").isEqualTo("Error on line: 1, column: 1\n" +
83+
"rule: standard:no-empty-file\n" +
84+
"File 'unsolvable.dirty' should not be empty");
8585
}
8686

8787
@Test

0 commit comments

Comments
 (0)