File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
1212- ** Verbose test output** : ` go test -v ./... `
1313
1414### Code Quality
15+ - ** Prefer Go 1.24 packages** like slices package
1516- ** Check Go modules** : ` go mod tidy `
1617- ** Format code** : ` go fmt ./... `
1718- ** Run static analysis** : ` go vet ./... `
@@ -60,6 +61,9 @@ Commands follow Cobra CLI patterns with:
6061- Use testify assert for test assertions (` github.com/stretchr/testify/assert ` )
6162- Test data in ` testdata/ ` directories
6263- Integration tests use real extension samples in ` testdata/ `
64+ - Prefer assert.ElementsMatch on lists to ignore ordering issues
65+ - Use t.Setenv for environment variables
66+ - Use t.Context() for Context creation in tests
6367
6468### Error Handling
6569- Use structured logging via ` go.uber.org/zap `
You can’t perform that action at this time.
0 commit comments