make build- Build all assets (templ, CSS, JS)make run- Build and run with debug logginggo test ./...- Run all testsgo test -run TestName ./package- Run specific testgo test -v ./engine- Run engine tests with verbose outputmake templ- Generate Go templates from .templ filesnpm run build- Build CSS and JS assets
- Use
gofmtfor formatting (already enforced) - Import order: stdlib, external, internal (github.com/jon4hz/jellysweep/...)
- Use testify/assert and testify/require for tests
- Error handling: return errors, use
//nolint:errcheckwhen intentionally ignoring - Struct tags: use both
yamlandmapstructurefor config structs - Comments: document exported types and functions
- Naming: use camelCase for unexported, PascalCase for exported
- Use context.Context for cancellation and timeouts
- Prefer table-driven tests with
tests := []struct{} - Use
requirefor test setup,assertfor assertions - Mock external dependencies in tests (see mocks_test.go)