Skip to content

chore: add linting enforcement for agents#2115

Open
simple-agent-manager[bot] wants to merge 1 commit into
mainfrom
sam/add-linting-enforcement-agents-01krp2
Open

chore: add linting enforcement for agents#2115
simple-agent-manager[bot] wants to merge 1 commit into
mainfrom
sam/add-linting-enforcement-agents-01krp2

Conversation

@simple-agent-manager
Copy link
Copy Markdown
Contributor

Summary

  • Switch git hooks from .git/hooks/ copies to core.hooksPath pointing at scripts/ directory
  • Add Claude Code PostToolUse hook that auto-runs golangci-lint --fix on edited Go files
  • Add AGENTS.md for Codex agents with lint/test requirements
  • Add .claude/rules/linting.md rule for Claude Code agents
  • Devcontainer updated to set core.hooksPath and install golangci-lint v2.5.0

Test plan

  • Verified golangci-lint v2.5.0 is available
  • Verified cd src && make lint passes (0 issues)
  • Verified pre-commit and pre-push scripts have valid bash syntax
  • Verified hook scripts are executable

Generated with Claude Code

- Switch git hooks from .git/hooks/ copies to core.hooksPath (scripts/)
- Add Claude Code PostToolUse hook to auto-lint edited Go files
- Add AGENTS.md for Codex with lint/test requirements
- Add .claude/rules/linting.md for Claude Code agents

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant