Duke
Duke copied to clipboard
Duke code formatter
It would be nice to publish a Duke code formatter configuration for the most used IDEs (Eclipse, IntelliJ, Netbeans). To cover Eclipse and IntelliJ we could use Eclipse configurations + this IntelliJ plugin http://plugins.jetbrains.com/plugin/?idea&id=6546.
Any other available alternative?
I think configs that are supported by the IDEs is the best bet. In addition, we could use CheckStyle in Maven to enforce it at build time.
What about pushing an IDE style config in the doc folder (eg: Duke/doc/ide/Duke-eclipse-formatter.xml) ?
I personally like the Google Java Style formatter for Eclipse (https://code.google.com/p/google-styleguide/source/browse/trunk/eclipse-java-google-style.xml) but if you have another one is fine with me. The goal is to have a common style convention for all the contributors.