File tree Expand file tree Collapse file tree 5 files changed +37
-76
lines changed
testCleanthat/java/com/diffplug/spotless/glue/java
testCompatCleanthat2Dot1/java/com/diffplug/spotless/glue/java
plugin-gradle/src/test/java/com/diffplug/gradle/spotless Expand file tree Collapse file tree 5 files changed +37
-76
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ lib('java.PalantirJavaFormatStep') +'{{yes}} | {{yes}}
84
84
lib('java.RemoveUnusedImportsStep') +'{{yes}} | {{yes}} | {{yes}} | {{no}} |',
85
85
extra('java.EclipseJdtFormatterStep') +'{{yes}} | {{yes}} | {{yes}} | {{no}} |',
86
86
lib('java.FormatAnnotationsStep') +'{{yes}} | {{yes}} | {{no}} | {{no}} |',
87
- lib('java.CleanthatJavaStep') +'{{no }} | {{yes}} | {{no}} | {{no}} |',
87
+ lib('java.CleanthatJavaStep') +'{{yes }} | {{yes}} | {{no}} | {{no}} |',
88
88
lib('json.gson.GsonStep') +'{{yes}} | {{yes}} | {{no}} | {{no}} |',
89
89
lib('json.JacksonJsonStep') +'{{yes}} | {{yes}} | {{no}} | {{no}} |',
90
90
lib('json.JsonSimpleStep') +'{{yes}} | {{yes}} | {{no}} | {{no}} |',
Original file line number Diff line number Diff line change @@ -40,6 +40,12 @@ versionCompatibility {
40
40
]
41
41
targetSourceSetName = ' ktlint'
42
42
}
43
+ namespaces. register(' Cleanthat' ) {
44
+ versions = [
45
+ ' 2.1' ,
46
+ ]
47
+ targetSourceSetName = ' cleanthat'
48
+ }
43
49
}
44
50
}
45
51
@@ -103,9 +109,8 @@ dependencies {
103
109
104
110
gsonCompileOnly ' com.google.code.gson:gson:2.10.1'
105
111
106
- // TODO How can one add a test module like 'compatKtLint0Dot48Dot0'?
107
- // cleanthatCompileAndTestOnly 'io.github.solven-eu.cleanthat:java:2.1'
108
112
cleanthatCompileOnly ' io.github.solven-eu.cleanthat:java:2.1'
113
+ compatCleanthat2Dot1CompileAndTestOnly ' io.github.solven-eu.cleanthat:java:2.1'
109
114
}
110
115
111
116
// we'll hold the core lib to a high standard
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2023 DiffPlug
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ package com.diffplug.spotless.glue.java;
17
+
18
+ import org.assertj.core.api.Assertions;
19
+ import org.junit.jupiter.api.Test;
20
+
21
+ import eu.solven.cleanthat.engine.java.refactorer.JavaRefactorer;
22
+
23
+ public class JavaCleanthatRefactorerFuncTest {
24
+ @Test
25
+ public void testMutatorsDetection() {
26
+ Assertions.assertThat(JavaRefactorer.getAllIncluded()).isNotEmpty();
27
+ }
28
+ }
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ void integration() throws IOException {
31
31
"spotless {" ,
32
32
" java {" ,
33
33
" target file('test.java')" ,
34
- " cleanthat().sourceJdk ('11')" ,
34
+ " cleanthat().sourceCompatibility ('11')" ,
35
35
" }" ,
36
36
"}" );
37
37
You can’t perform that action at this time.
0 commit comments