google / styleguide

Style guides for Google-originated open-source projects
https://google.github.io/styleguide/
Apache License 2.0
37.25k stars 13.3k forks source link

Java: Conflicts between eclipse-java-google-style.xml and HTML guide #248

Open gaocegege opened 7 years ago

gaocegege commented 7 years ago

The guide here shows that:

If there are both static and non-static imports, a single blank line separates the two blocks. There are no other blank lines between import statements.

But in eclipse-java-google-style.xml#L244, there is a config to insert blank lines in different import groups:

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

Is there something wrong?

donce commented 7 years ago

https://github.com/google/styleguide/pull/271

Marcono1234 commented 2 years ago

Probably a duplicate of #273