File tree 2 files changed +3
-3
lines changed
plugin-gradle/src/test/java/com/diffplug/gradle/spotless
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2016-2021 DiffPlug
2
+ * Copyright 2016-2022 DiffPlug
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -135,7 +135,7 @@ void testWithIndentation() throws IOException {
135
135
" }" ,
136
136
"}" );
137
137
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 ();
139
139
assertThat (result .getOutput ()).contains ("Unexpected indentation (4) (it should be 6)" );
140
140
}
141
141
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ void integration_default_diktat() throws IOException {
89
89
" }" ,
90
90
"}" );
91
91
setFile ("configuration.gradle.kts" ).toResource ("kotlin/diktat/basic.dirty" );
92
- BuildResult result = gradleRunner ().withArguments ("spotlessApply " ).buildAndFail ();
92
+ BuildResult result = gradleRunner ().withArguments ("spotlessCheck " ).buildAndFail ();
93
93
assertThat (result .getOutput ()).contains ("[AVOID_NESTED_FUNCTIONS] try to avoid using nested functions" );
94
94
}
95
95
You can’t perform that action at this time.
0 commit comments