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

Eclipse java style does not specify space between import groups #724

Open
bentatham opened this issue Nov 9, 2022 · 0 comments
Open

Eclipse java style does not specify space between import groups #724

bentatham opened this issue Nov 9, 2022 · 0 comments

Comments

@bentatham
Copy link

As per the Java Style Guide:

If there are both static and non-static imports, a single blank line separates the two blocks.

But the eclipse-java-google-style.xml specifies a value of 0, when it should be 1.

<setting id="org.eclipse.jdt.core.formatter.blank_lines_between_import_groups" value="0"/>

It seems that the Google formatter implementation for Eclipse does not organize imports, so you have to separately configure the Organize Imports ordering in Eclipse settings, but then this value removes the line between static and non-static imports.

bentatham added a commit to bentatham/styleguide that referenced this issue Nov 9, 2022
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

No branches or pull requests

1 participant