Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 687 Bytes

code-formatting.rst

File metadata and controls

31 lines (21 loc) · 687 Bytes

Code formatting

Note, these guidelines do not cover:

  • third-party code imported into the source tree, which is covered by the guidelines for the upstream projects
  • released schema files which would require re-releasing if changed by reindenting

All languages

  • Use spaces to indent; do not ever use tabs

Java

All Java code is formatted with:

XML

All XML code is formatted with:

  • an indentation size of two spaces
  • attributes on multiple lines aligned vertically after the element name.