Skip to content

Working page — extend exception cases for rule 3.5 [indenting]

Andrey Shcheglov edited this page Jul 5, 2022 · 2 revisions

Current exceptions:

  • Arguments list:
    • 8 spaces in argument list (both in declaration and at call site)
    • Arguments in argument list can be aligned if they are on different lines
  • 8 spaces if newline is after an operator
  • 8 spaces if newline is before dot call
  • Supertype list:
    • 4 spaces if colon before supertype list is on new line
    • 4 spaces before each supertype; 8 if colon is on new line

See also Mapping of flags which affect indentation.