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 — IntelliJ formatter by IlyasYOY · Pull Request #2020 · diffplug/spotless

IntelliJ formatter #2020

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
simschla merged 17 commits into diffplug:main from IlyasYOY:main
Jul 2, 2025

Uh oh!

There was an error while loading. Please reload this page.

Merged

IntelliJ formatter #2020

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
6419de1
Basic IDEA usage locally.
IlyasYOY Jan 11, 2024
b84d243
Parameterize IDEA usage.
IlyasYOY Jan 23, 2024
1d8d9b2
Verify IDEA binary.
IlyasYOY Jan 23, 2024
9d09760
Merge branch 'main' of github.com:diffplug/spotless
IlyasYOY Jan 23, 2024
affd905
Gradle IDEA integration.
IlyasYOY Jan 23, 2024
effe2fc
Maven IDEA integration.
IlyasYOY Jan 23, 2024
8e30175
Make IDEA tests special
IlyasYOY Jan 23, 2024
1554dd6
docs: CHANGES.md
IlyasYOY Jan 23, 2024
763eaac
Config file for IDEA step
IlyasYOY Jan 23, 2024
fdb73b7
CI Fixes
IlyasYOY Jan 24, 2024
e58c9f8
Merge branch 'main' of github.com:diffplug/spotless
IlyasYOY Jan 24, 2024
c6c6cce
docs: fixed structure of CHANGES.md
IlyasYOY Jan 24, 2024
bf5918c
Merge branch 'main' of github.com:diffplug/spotless
IlyasYOY Jan 27, 2024
9123527
Create State object
IlyasYOY Jan 27, 2024
7d6eed4
Merge branch 'main' of github.com:diffplug/spotless
IlyasYOY Jan 28, 2024
e03e715
Merge branch 'main' into main-IlyasYOY
nedtwigg Feb 13, 2024
a0bde46
spotlessApply
nedtwigg Feb 13, 2024
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Prev Previous commit
Next Next commit
Maven IDEA integration.
IDEA running using maven
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@IlyasYOY
IlyasYOY committed Jan 23, 2024
commit effe2fcfdb0679598b6c83d2cd9dbbc965237c03

There are no files selected for viewing

36 changes: 36 additions & 0 deletions 36 plugin-maven/src/main/java/com/diffplug/spotless/maven/java/Idea.java
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* Copyright 2016-2024 DiffPlug
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.diffplug.spotless.maven.java;

import org.apache.maven.plugins.annotations.Parameter;
import com.diffplug.spotless.FormatterStep;
import com.diffplug.spotless.java.IdeaStep;
import com.diffplug.spotless.maven.FormatterStepConfig;
import com.diffplug.spotless.maven.FormatterStepFactory;

public class Idea implements FormatterStepFactory {

@Parameter
private String binaryPath;

@Parameter
private Boolean withDefaults = false;

@Override
public FormatterStep newFormatterStep(FormatterStepConfig config) {
return IdeaStep.create(withDefaults, binaryPath);
}
}
4 changes: 4 additions & 0 deletions 4 plugin-maven/src/main/java/com/diffplug/spotless/maven/java/Java.java
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ public void addImportOrder(ImportOrder importOrder) {
addStepFactory(importOrder);
}

public void addIdea(Idea idea) {
addStepFactory(idea);
}

public void addPalantirJavaFormat(PalantirJavaFormat palantirJavaFormat) {
addStepFactory(palantirJavaFormat);
}
Expand Down
36 changes: 36 additions & 0 deletions 36 plugin-maven/src/test/java/com/diffplug/spotless/maven/java/IdeaTest.java
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* Copyright 2016-2021 DiffPlug
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.diffplug.spotless.maven.java;

import org.junit.jupiter.api.Test;

import com.diffplug.spotless.maven.MavenIntegrationHarness;

class IdeaTest extends MavenIntegrationHarness {
@Test
void idea() throws Exception {
setFile("test.java").toResource("java/cleanthat/MultipleMutators.dirty.test");
writePomWithJavaSteps(
"<idea>",
" <binaryPath>idea</binaryPath>",
" <withDefaults>true</withDefaults>",
"</idea>");

mavenRunner().withArguments("spotless:apply").runNoError();

assertFile("test.java").notSameAsResource("java/cleanthat/MultipleMutators.dirty.test");
}
}
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
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.