Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .claude/hooks/format-and-lint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# Read hook input from stdin
input=$(cat)

# Extract file path from the input JSON
file_path=$(echo "$input" | jq -r '.tool_input.file_path // empty')

# Only process Go files
if [[ "$file_path" =~ \.go$ ]]; then
echo "Running go fmt on $file_path"
go fmt "$file_path"
fi
15 changes: 15 additions & 0 deletions .claude/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"hooks": {
"PostToolUse": [
{
"matcher": "Edit|Write",
"hooks": [
{
"type": "command",
"command": "$CLAUDE_PROJECT_DIR/.claude/hooks/format-and-lint.sh"
}
]
}
]
}
}
5 changes: 1 addition & 4 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ make migration_lint # Lint migration files

## Key Technologies

- **Language**: Go 1.24.6. To know how to upgrade go version, see @.claude/golang-upgrade-process.md
- **Language**: Go 1.24.6. To know how to upgrade go version, see docs/runbooks
- **API**: gRPC with HTTP/JSON gateway, Protocol Buffers with buf
- **Database**: PostgreSQL with Ent ORM, Atlas for migrations
- **Authentication**: OIDC, JWT tokens
Expand Down Expand Up @@ -253,8 +253,5 @@ All commits must meet these criteria:

Code reviews are required for all submissions via GitHub pull requests.
- make sure golang code is always formatted and golang-ci-lint is run


- I do not want you to be in the co-author signoff
- make sure all go code is go-fmt
- when the schema is changed, run make generate, do not create a migration explicitly
Loading