Skip to content

Commit b36a16e

Browse files
authored
Updated diktat version to 1.2.1 (#1251)
2 parents 7ad0c55 + 9dde3da commit b36a16e

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
1616
* Bump default `ktlint` version to latest `0.45.2` -> `0.46.1` ([#1239](https://github.com/diffplug/spotless/issues/1239))
1717
* Minimum supported version also bumped to `0.46.0` (we have abandoned strong backward compatibility for `ktlint`, from here on out Spotless will only support the most-recent breaking change).
1818
* Bump default `diktat` version to latest `1.1.0` -> `1.2.1` ([#1246](https://github.com/diffplug/spotless/pull/1246))
19-
* Minimum supported version also bumped to `1.2.0` (diktat is based on ktlint and has the same backward compatibility issues).
19+
* Minimum supported version also bumped to `1.2.1` (diktat is based on ktlint and has the same backward compatibility issues).
2020
* Bump default `ktfmt` version to latest `0.37` -> `0.39` ([#1240](https://github.com/diffplug/spotless/pull/1240))
2121

2222
## [2.26.2] - 2022-06-11

lib/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ dependencies {
5151
ktlintCompileOnly "com.pinterest.ktlint:ktlint-ruleset-experimental:$VER_KTLINT"
5252
ktlintCompileOnly "com.pinterest.ktlint:ktlint-ruleset-standard:$VER_KTLINT"
5353

54-
String VER_DIKTAT = "1.2.0"
54+
String VER_DIKTAT = "1.2.1"
5555
diktatCompileOnly "org.cqfn.diktat:diktat-rules:$VER_DIKTAT"
5656

5757
// used for markdown formatting

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ public class DiktatStep {
3030
// prevent direct instantiation
3131
private DiktatStep() {}
3232

33-
private static final String MIN_SUPPORTED_VERSION = "1.2.0";
33+
private static final String MIN_SUPPORTED_VERSION = "1.2.1";
3434

35-
private static final String DEFAULT_VERSION = "1.2.0";
35+
private static final String DEFAULT_VERSION = "1.2.1";
3636
static final String NAME = "diktat";
3737
static final String PACKAGE_DIKTAT = "org.cqfn.diktat";
3838
static final String MAVEN_COORDINATE = PACKAGE_DIKTAT + ":diktat-rules:";

plugin-gradle/CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
99
* Bump default `ktlint` version to latest `0.45.2` -> `0.46.1` ([#1239](https://github.com/diffplug/spotless/issues/1239))
1010
* Minimum supported version also bumped to `0.46.0` (we have abandoned strong backward compatibility for `ktlint`, from here on out Spotless will only support the most-recent breaking change).
1111
* Bump default `diktat` version to latest `1.1.0` -> `1.2.1` ([#1246](https://github.com/diffplug/spotless/pull/1246))
12-
* Minimum supported version also bumped to `1.2.0` (diktat is based on ktlint and has the same backward compatibility issues).
12+
* Minimum supported version also bumped to `1.2.1` (diktat is based on ktlint and has the same backward compatibility issues).
1313
* Bump default `ktfmt` version to latest `0.37` -> `0.39` ([#1240](https://github.com/diffplug/spotless/pull/1240))
1414

1515
## [6.7.2] - 2022-06-11

plugin-maven/CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
99
* Bump default `ktlint` version to latest `0.45.2` -> `0.46.1` ([#1239](https://github.com/diffplug/spotless/issues/1239))
1010
* Minimum supported version also bumped to `0.46.0` (we have abandoned strong backward compatibility for `ktlint`, from here on out Spotless will only support the most-recent breaking change).
1111
* Bump default `diktat` version to latest `1.1.0` -> `1.2.1` ([#1246](https://github.com/diffplug/spotless/pull/1246))
12-
* Minimum supported version also bumped to `1.2.0` (diktat is based on ktlint and has the same backward compatibility issues).
12+
* Minimum supported version also bumped to `1.2.1` (diktat is based on ktlint and has the same backward compatibility issues).
1313
* Bump default `ktfmt` version to latest `0.37` -> `0.39` ([#1240](https://github.com/diffplug/spotless/pull/1240))
1414

1515
## [2.22.8] - 2022-06-11

plugin-maven/src/test/java/com/diffplug/spotless/maven/kotlin/DiktatTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void testDiktatWithVersion() throws Exception {
4040

4141
writePomWithKotlinSteps(
4242
"<diktat>",
43-
" <version>1.2.0</version>",
43+
" <version>1.2.1</version>",
4444
"</diktat>");
4545

4646
String path = "src/main/kotlin/Main.kt";
@@ -56,7 +56,7 @@ void testDiktatConfig() throws Exception {
5656
File conf = setFile(configPath).toResource("kotlin/diktat/diktat-analysis.yml");
5757
writePomWithKotlinSteps(
5858
"<diktat>",
59-
" <version>1.2.0</version>",
59+
" <version>1.2.1</version>",
6060
" <configFile>" + conf.getAbsolutePath() + "</configFile>",
6161
"</diktat>");
6262

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void behaviorConf() throws Exception {
5454
File conf = setFile(configPath).toResource("kotlin/diktat/diktat-analysis.yml");
5555
FileSignature config = signAsList(conf);
5656

57-
FormatterStep step = DiktatStep.create("1.2.0", TestProvisioner.mavenCentral(), config);
57+
FormatterStep step = DiktatStep.create("1.2.1", TestProvisioner.mavenCentral(), config);
5858
StepHarness.forStep(step)
5959
.testResourceException("kotlin/diktat/Unsolvable.kt", assertion -> {
6060
assertion.isInstanceOf(AssertionError.class);
@@ -75,7 +75,7 @@ void notSupportedVersion() {
7575
final IllegalStateException notSupportedException = Assertions.assertThrows(IllegalStateException.class,
7676
() -> DiktatStep.create("1.1.0", TestProvisioner.mavenCentral()));
7777
Assertions.assertTrue(
78-
notSupportedException.getMessage().contains("Minimum required Diktat version is 1.2.0, you tried 1.1.0 which is too old"));
78+
notSupportedException.getMessage().contains("Minimum required Diktat version is 1.2.1, you tried 1.1.0 which is too old"));
7979

8080
Assertions.assertDoesNotThrow(() -> DiktatStep.create("1.2.1", TestProvisioner.mavenCentral()));
8181
Assertions.assertDoesNotThrow(() -> DiktatStep.create("2.0.0", TestProvisioner.mavenCentral()));

0 commit comments

Comments
 (0)