File tree 5 files changed +36
-1
lines changed
plugin-gradle/src/test/java/com/diffplug/gradle/spotless
plugin-maven/src/test/java/com/diffplug/spotless/maven/java
main/java/com/diffplug/spotless/tag
test/java/com/diffplug/spotless/java
5 files changed +36
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ def special = [
6
6
' Buf' ,
7
7
' Clang' ,
8
8
' gofmt' ,
9
+ ' idea' ,
9
10
' Npm' ,
10
11
' Shfmt'
11
12
]
Original file line number Diff line number Diff line change 18
18
import java .io .IOException ;
19
19
20
20
import org .junit .jupiter .api .Test ;
21
+ import com .diffplug .spotless .tag .IdeaTest ;
21
22
22
-
23
+ @ IdeaTest
23
24
class JavaIdeaTest extends GradleIntegrationHarness {
24
25
@ Test
25
26
void idea () throws IOException {
Original file line number Diff line number Diff line change 19
19
20
20
import com .diffplug .spotless .maven .MavenIntegrationHarness ;
21
21
22
+ @ com .diffplug .spotless .tag .IdeaTest
22
23
class IdeaTest extends MavenIntegrationHarness {
23
24
@ Test
24
25
void idea () throws Exception {
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2021-2024 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 .tag ;
17
+
18
+ import static java .lang .annotation .ElementType .METHOD ;
19
+ import static java .lang .annotation .ElementType .TYPE ;
20
+ import static java .lang .annotation .RetentionPolicy .RUNTIME ;
21
+
22
+ import java .lang .annotation .Retention ;
23
+ import java .lang .annotation .Target ;
24
+
25
+ import org .junit .jupiter .api .Tag ;
26
+
27
+ @ Target ({TYPE , METHOD })
28
+ @ Retention (RUNTIME )
29
+ @ Tag ("idea" )
30
+ public @interface IdeaTest {}
Original file line number Diff line number Diff line change 7
7
import com .diffplug .common .io .Files ;
8
8
import com .diffplug .spotless .FormatterStep ;
9
9
import com .diffplug .spotless .ResourceHarness ;
10
+ import com .diffplug .spotless .tag .IdeaTest ;
10
11
12
+ @ IdeaTest
11
13
class IdeaStepTest extends ResourceHarness {
12
14
13
15
@ Test
You can’t perform that action at this time.
0 commit comments