Project

General

Profile

Coding standards » History » Version 1

Mara Oyelaran, 08/19/2026 07:18 PM

1 1 Mara Oyelaran
# Coding standards
2
3
Formatting is not a matter of taste here: the formatter runs in CI and its output is the standard.
4
What a reviewer will actually ask about:
5
6
* **Errors carry context.** An error that reaches a log without the tenant, the route and the
7
  correlation id has wasted everybody's time.
8
* **No new database read across a service boundary.** Add an event or an endpoint.
9
* **Every migration is reversible** and every migration is safe to run while the old code is still
10
  serving traffic. We deploy before we migrate, never the other way round.
11
* **Tests describe behaviour, not implementation.** If renaming a private method breaks a test, the
12
  test was wrong.
13
* **Public API changes need a documentation change in the same commit.** The OpenAPI document is
14
  generated, so this usually means an annotation.