GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — spotlessApply · diffplug/spotless@a0bde46

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • plugin-gradle/src/test/java/com/diffplug/gradle/spotless
    • JavaIdeaTest.java
  • plugin-maven/src
    • main/java/com/diffplug/spotless/maven/java
      • Idea.java
      • Java.java
    • test/java/com/diffplug/spotless/maven/java
      • IdeaTest.java
  • testlib/src
    • main/java/com/diffplug/spotless
      • ResourceHarness.java
    • test/java/com/diffplug/spotless/java
      • IdeaStepTest.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎plugin-gradle/src/test/java/com/diffplug/gradle/spotless/JavaIdeaTest.java‎

Copy file name to clipboardExpand all lines: plugin-gradle/src/test/java/com/diffplug/gradle/spotless/JavaIdeaTest.java
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import java.io.IOException;
1919

2020
import org.junit.jupiter.api.Test;
21+
2122
import com.diffplug.spotless.tag.IdeaTest;
2223

2324
@IdeaTest
Collapse file

‎plugin-maven/src/main/java/com/diffplug/spotless/maven/java/Idea.java‎

Copy file name to clipboardExpand all lines: plugin-maven/src/main/java/com/diffplug/spotless/maven/java/Idea.java
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
package com.diffplug.spotless.maven.java;
1717

1818
import org.apache.maven.plugins.annotations.Parameter;
19+
1920
import com.diffplug.spotless.FormatterStep;
2021
import com.diffplug.spotless.java.IdeaStep;
2122
import com.diffplug.spotless.maven.FormatterStepConfig;
Collapse file

‎plugin-maven/src/main/java/com/diffplug/spotless/maven/java/Java.java‎

Copy file name to clipboardExpand all lines: plugin-maven/src/main/java/com/diffplug/spotless/maven/java/Java.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2023 DiffPlug
2+
* Copyright 2016-2024 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.
Collapse file

‎plugin-maven/src/test/java/com/diffplug/spotless/maven/java/IdeaTest.java‎

Copy file name to clipboardExpand all lines: plugin-maven/src/test/java/com/diffplug/spotless/maven/java/IdeaTest.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2021 DiffPlug
2+
* Copyright 2016-2024 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.
Collapse file

‎testlib/src/main/java/com/diffplug/spotless/ResourceHarness.java‎

Copy file name to clipboardExpand all lines: testlib/src/main/java/com/diffplug/spotless/ResourceHarness.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2023 DiffPlug
2+
* Copyright 2016-2024 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.
Collapse file

‎testlib/src/test/java/com/diffplug/spotless/java/IdeaStepTest.java‎

Copy file name to clipboardExpand all lines: testlib/src/test/java/com/diffplug/spotless/java/IdeaStepTest.java
+22-10Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,26 @@
1+
/*
2+
* Copyright 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+
*/
116
package com.diffplug.spotless.java;
217

318
import java.io.File;
419
import java.nio.charset.StandardCharsets;
20+
521
import org.junit.jupiter.api.Assertions;
622
import org.junit.jupiter.api.Test;
23+
724
import com.diffplug.common.io.Files;
825
import com.diffplug.spotless.FormatterStep;
926
import com.diffplug.spotless.ResourceHarness;
@@ -24,8 +41,7 @@ void name() throws Exception {
2441
@Test
2542
void notFormattings() throws Exception {
2643
File cleanFile = newFile("clean.java");
27-
String cleanJava =
28-
ResourceHarness.getTestResource("java/idea/full.clean.java");
44+
String cleanJava = ResourceHarness.getTestResource("java/idea/full.clean.java");
2945
Files.write(cleanJava, cleanFile, StandardCharsets.UTF_8);
3046
FormatterStep step = IdeaStep.create(true, "idea");
3147

@@ -38,8 +54,7 @@ void notFormattings() throws Exception {
3854
@Test
3955
void formattings() throws Exception {
4056
File dirtyFile = newFile("dirty.java");
41-
String dirtyJava =
42-
ResourceHarness.getTestResource("java/idea/full.dirty.java");
57+
String dirtyJava = ResourceHarness.getTestResource("java/idea/full.dirty.java");
4358
Files.write(dirtyJava, dirtyFile, StandardCharsets.UTF_8);
4459
FormatterStep step = IdeaStep.create(true, "idea");
4560

@@ -52,8 +67,7 @@ void formattings() throws Exception {
5267
@Test
5368
void formattingsWorkWithDefaultParameters() throws Exception {
5469
File dirtyFile = newFile("dirty.java");
55-
String dirtyJava =
56-
ResourceHarness.getTestResource("java/idea/full.dirty.java");
70+
String dirtyJava = ResourceHarness.getTestResource("java/idea/full.dirty.java");
5771
Files.write(dirtyJava, dirtyFile, StandardCharsets.UTF_8);
5872
FormatterStep step = IdeaStep.create();
5973

@@ -66,8 +80,7 @@ void formattingsWorkWithDefaultParameters() throws Exception {
6680
@Test
6781
void formattingsWithOutDefaultDoesNothing() throws Exception {
6882
File dirtyFile = newFile("dirty.java");
69-
String dirtyJava =
70-
ResourceHarness.getTestResource("java/idea/full.dirty.java");
83+
String dirtyJava = ResourceHarness.getTestResource("java/idea/full.dirty.java");
7184
Files.write(dirtyJava, dirtyFile, StandardCharsets.UTF_8);
7285
FormatterStep step = IdeaStep.create(false, "idea");
7386

@@ -80,8 +93,7 @@ void formattingsWithOutDefaultDoesNothing() throws Exception {
8093
@Test
8194
void configureFile() throws Exception {
8295
File cleanFile = newFile("clean.java");
83-
String cleanJava =
84-
ResourceHarness.getTestResource("java/idea/full.clean.java");
96+
String cleanJava = ResourceHarness.getTestResource("java/idea/full.clean.java");
8597
Files.write(cleanJava, cleanFile, StandardCharsets.UTF_8);
8698
FormatterStep step = IdeaStep.create(true, "idea");
8799

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.