Skip to content
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.

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

Use Eclipse formatter 4.25 with Spotless #3710

Merged
merged 1 commit into from
Jul 18, 2023

Conversation

wborn
Copy link
Member

@wborn wborn commented Jul 17, 2023

This is the result after running:

mvn spotless:apply -Dspotless.eclipse.version=4.25

Perhaps we should just revert the version in the property?
I still don't know of any negative side effects and the PR will probably also build successfully while it is uses 4.26.

See also #3515 (comment).

@wborn wborn requested a review from a team as a code owner July 17, 2023 18:49
@J-N-K
Copy link
Member

J-N-K commented Jul 17, 2023

The problem with 4.25 is something with if (Element instanceof Foo bar) { (I can't remember exactly what was formatted wrong, I believe a space was missing somewhere). This is fixed in 4.26

@wborn
Copy link
Member Author

wborn commented Jul 17, 2023

The problem with 4.25 is something with if (Element instanceof Foo bar) { (I can't remember exactly what was formatted wrong, I believe a space was missing somewhere). This is fixed in 4.26

No previously we used 4.21 and we upgraded to 4.26 in #3469.
The formatting is fine with 4.25 and it also works on tests.

Messed up spaces only return if you run:

mvn spotless:apply -Dspotless.eclipse.version=4.21

@wborn wborn changed the title Apply Spotless Use Eclipse 4.25 formatter with Spotless Jul 17, 2023
@wborn
Copy link
Member Author

wborn commented Jul 17, 2023

I now also tested the newer Spotless and Eclipse formatter versions but they still don't fix the issue that it does not check/apply test files.

@wborn wborn linked an issue Jul 17, 2023 that may be closed by this pull request
@wborn wborn changed the title Use Eclipse 4.25 formatter with Spotless Use Eclipse formatter 4.25 with Spotless Jul 17, 2023
@kaikreuzer kaikreuzer merged commit 3396ff7 into openhab:main Jul 18, 2023
@kaikreuzer kaikreuzer added this to the 4.0 milestone Jul 18, 2023
@wborn wborn deleted the apply-spotless branch July 18, 2023 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Spotless neither checks nor fixes files in src/test/java
3 participants