Refine agent branch naming and Go formatting guidance

This commit is contained in:
maze committed 2026-10-29 18:40:07 +01:00
1 parent 07dc1ec5b3
commit d489a9b85c
4 files changed
+3 -10

No files matched your search

+1 -4
View File
@@ -1,6 +1,6 @@
# Coding conventions
- Use idiomatic Go, `gofmt`, and the surrounding package's naming and import style.
- Use idiomatic Go, `goimports`, and the surrounding package's naming and import style.
Extend existing contracts instead of introducing parallel registries or layers.
- Wrap propagated errors with useful context and `%w`. Use `errors.Is` or
`errors.As` when callers need to recognize them.
@@ -17,6 +17,3 @@
- Put focused tests beside implementations. Cover parsing, malformed input,
detection precedence, failures and recovery with temporary files or fake servers.
Unit tests should run without physical GPIO, displays or a live MPD instance.
Adapted from [Flow's coding guide](https://github.com/onflow/flow-go/blob/master/docs/agents/CodingConventions.md),
with BeatGlow-specific lifecycle, logging and hardware guidance.