Skip to content
James Agnew edited this page Aug 14, 2019 · 7 revisions

Code Style

The HAPI FHIR codebase uses the following code style conventions. We are not strict about these, but consistency is a good thing so please consider using them.

Variable naming:

  • Parameters are named theFoo
  • Fields are named myFoo
  • Statics are named ourFoo
  • Constants are named FOO_CONSTANT

The project also uses an .editorconfig file to avoid ever worrying about tabs vs. spaces issues. There are plugins for most IDEs (and IntelliJ has built in support) for this format, so it is highly recommended to use it.

Clone this wiki locally