Skip to content

Configure 'Organize Imports' to avoid unecessary commit noise. #1423

@FlorianKroiss

Description

@FlorianKroiss

I noticed that some of my recent PR's changed wildcard imports to actual imports, e.g.,

import static org.junit.jupiter.api.Assertions.*;
// vs
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;

I think this comes from the fact, that the LSP4E projects don't have project specific settings for handling imports, e.g.:
Image

Thus, the IDE falls back to the workspace settings, which are probably different for every committer.
To avoid unnecessary commit noise we should probably configure these settings.

Personally, I'm leaning slightly toward named imports, but in the end, I don't really care, as long as we all use the same settings.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions