Skip to content

Commit cc8ad0c

Browse files
committed
docs: add code formatting section to CLAUDE.md
Add guidance to always run go fmt before committing changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 7dd9065 commit cc8ad0c

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

CLAUDE.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,25 @@ docker compose up -d
339339
3. **Use specific package tests:** Faster iteration during development
340340
4. **Start databases early:** `docker compose up -d` before running integration tests
341341
5. **Read existing tests:** Good examples in `/internal/engine/postgresql/*_test.go`
342+
6. **Always run go fmt:** Format code before committing (see Code Formatting below)
343+
344+
## Code Formatting
345+
346+
**Always run `go fmt` before committing changes.** This ensures consistent code style across the codebase.
347+
348+
```bash
349+
# Format specific packages
350+
go fmt ./internal/codegen/golang/...
351+
go fmt ./internal/poet/...
352+
353+
# Format all packages
354+
go fmt ./...
355+
```
356+
357+
For the code generation packages specifically:
358+
```bash
359+
go fmt ./internal/codegen/golang/... ./internal/poet/...
360+
```
342361

343362
## Git Workflow
344363

0 commit comments

Comments
 (0)