Skip to content

Update pmd-eclipse-imports.importorder#76

Merged
adangel merged 1 commit into
pmd:mainfrom
Pankraz76:patch-2
Jul 4, 2025
Merged

Update pmd-eclipse-imports.importorder#76
adangel merged 1 commit into
pmd:mainfrom
Pankraz76:patch-2

Conversation

@Pankraz76

@Pankraz76 Pankraz76 commented Jun 19, 2025

Copy link
Copy Markdown
Contributor

having config applied turns out to be violating check config.

with this its in one block like commited.

fix gap:

image

@adangel adangel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

For reference: pmd/pmd#5875 (comment)

@adangel adangel merged commit 9624ded into pmd:main Jul 4, 2025
adangel added a commit to adangel/build-tools that referenced this pull request Jul 4, 2025
@Pankraz76

Pankraz76 commented Jul 4, 2025

Copy link
Copy Markdown
Contributor Author

this will be wrong anytime soon again, as there is no one, to check on this and prevent.

Simply having proper tooling, like some random tool named spotless, that really applies the config every time, would instantly tell if there is any delta.

@adangel

adangel commented Jul 4, 2025

Copy link
Copy Markdown
Member

this will be wrong anytime soon again, as there is no one, to check on this and prevent.

Why do you think that?

@Pankraz76

Pankraz76 commented Jul 4, 2025 via email

Copy link
Copy Markdown
Contributor Author

@adangel

adangel commented Jul 8, 2025

Copy link
Copy Markdown
Member

It was possible to impose delta, so it is right now.

The configuration for eclipse was wrong, but the code not (no wrong import orders committed).

If there is no tool applying this all over and over it will be wrong again.

There is. The import order is enforced by checkstyle and this runs with maven verify phase. So I don't understand what your problem is.

This eclipse config was wrong, yes, but this doesn't matter: checkstyle would still have caught this with a build failure.

@Pankraz76

Copy link
Copy Markdown
Contributor Author

The configuration for eclipse was wrong, but the code not (no wrong import orders committed).

true. Then its only UX we could improve, by shifting the config into convent.

adangel added a commit that referenced this pull request Jul 18, 2025
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.

2 participants