Java
The Rules for Java code are encoded in the 2 attached format profiles for Eclipse.
XML
For XML the rules are
- no tabs and
- 4 spaces indentation.
Commit Messages
Reference the ticket number on the subject line, but describe the actual change, not just 'Fixed'. Sometimes this is the only comment that is shown for a commit (e.g. for "git log --pretty=oneline"). Try to stay under around 50 total characters.
- Leave a blank line after the subject line.
- Use lines of 77 characters or less for the remaining description.
- No tabs.
Example
ASTERIXDB-XXX: fix JSON output Add the bracket brace that was missing when writing arrays that are nested more than 5 levels deep.