Skip to content

Commit e8e5df5

Browse files
committed
Lints are now quietly suppressed during apply, you have to do check to see them.
1 parent 85fbe71 commit e8e5df5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

plugin-gradle/src/test/java/com/diffplug/gradle/spotless/KotlinExtensionTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2021 DiffPlug
2+
* Copyright 2016-2022 DiffPlug
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -135,7 +135,7 @@ void testWithIndentation() throws IOException {
135135
" }",
136136
"}");
137137
setFile("src/main/kotlin/basic.kt").toResource("kotlin/ktlint/basic.dirty");
138-
BuildResult result = gradleRunner().withArguments("spotlessApply").buildAndFail();
138+
BuildResult result = gradleRunner().withArguments("spotlessCheck", "--stacktrace").buildAndFail();
139139
assertThat(result.getOutput()).contains("Unexpected indentation (4) (it should be 6)");
140140
}
141141

plugin-gradle/src/test/java/com/diffplug/gradle/spotless/KotlinGradleExtensionTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ void integration_default_diktat() throws IOException {
8989
" }",
9090
"}");
9191
setFile("configuration.gradle.kts").toResource("kotlin/diktat/basic.dirty");
92-
BuildResult result = gradleRunner().withArguments("spotlessApply").buildAndFail();
92+
BuildResult result = gradleRunner().withArguments("spotlessCheck").buildAndFail();
9393
assertThat(result.getOutput()).contains("[AVOID_NESTED_FUNCTIONS] try to avoid using nested functions");
9494
}
9595

0 commit comments

Comments
 (0)