If you are developing Joshua using Eclipse, please import the formatter configuration eclipse-codeformat.xml in Joshua root. In Eclipse preferences, go to Java -> Code Style -> Formatter. Then click on Import... and choose eclipse-codeformat.xml
.
General notes
- 100 characters maximum line width
- Indent with 2 spaces
- Use spaces only for tabbing
- Open brace on same line
- Keep
else if
on one line