Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 684 Bytes

CODESTYLE.md

File metadata and controls

26 lines (17 loc) · 684 Bytes

Code style

Checkstyle plugin is used to validate code style. Check checkstyle/checkstyle.xml for more details.

Few important notes about the style:

Indentation

  • Use spaces (tabs banned)
  • 1 indent = 4 spaces

Field naming convention

  • "hungarian" notation is banned
  • ALL_CAPS for static final fields
  • camelCase for naming (_ tolerable in test names)

Imports

  • * imports are banned

General

  • line length = 100
  • method declaration parameters = Align when multiline
  • use interfaces only as types (no interface for constants)