From sflaniga at redhat.com Fri Nov 8 02:04:44 2013 From: sflaniga at redhat.com (Sean Flanigan) Date: Fri, 08 Nov 2013 12:04:44 +1000 Subject: [zanata-devel] Code style: "organize imports" settings for Eclipse (and the Eclipse-formatter plugin in IntelliJ) Message-ID: <527C46BC.10506@redhat.com> 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: