[zanata-devel] Code style: "organize imports" settings for Eclipse (and the Eclipse-formatter plugin in IntelliJ)
Sean Flanigan
sflaniga at redhat.com
Fri Nov 8 02:04:44 UTC 2013
We've had a few hard-to-read diffs (and pull requests) because of
re-organised imports with inconsistent settings, so could everyone
please import this file?
https://github.com/zanata/zanata-parent/blob/master/eclipse-organize-imports.importorder
This will use the following order for import statements:
java
javax
org
com
In Eclipse, you can find the correct Preferences page by searching for
"organize imports".
It's not part of the above file, but I would also recommend these
settings on the same Preferences page in Eclipse:
Number of imports needed for .* (eg org.eclipse.*): 999 [ie never]
Number of static imports needed for .* (eg java.lang.Math.*): 5
[SELECT] Do not create imports for types starting with a lowercase letter
Thanks for the suggestion, Patrick!
--
Sean Flanigan
Senior Software Engineer
Engineering - Internationalisation
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 295 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/zanata-devel/attachments/20131108/f7fde34f/attachment.sig>
More information about the zanata-devel
mailing list