code-style · git:20260918.7f0014d · 2026-09-18 · sha256 39a3da06bbca91fa

code-style git:20260918.7f0014dA

Immutable. This exact content never changes and is served at /api/v1/blob/39a3da06bbca91fa.

---
description: Formatting, lint, comments language
globs: **/*.go
alwaysApply: true
---

# Code style (Go)

1. **`gofmt`** / **`go fmt`** - format before committing when you touch files.
2. **`make lint`** - the repo gate (see **`Makefile`**): `golangci-lint` over the untagged tree, over every tag but `ui` and over the shipped tag set, then `tsc --noEmit` over the SPA sources (`make ui-typecheck`).
3. Comments in code - **English only**.
4. Follow existing patterns in neighboring files (imports grouping, naming, error handling).

## References

@Makefile