Skip to content

chore: add linting enforcement for agents#2115

Merged
lionello merged 1 commit into
mainfrom
sam/add-linting-enforcement-agents-01krp2
May 19, 2026
Merged

chore: add linting enforcement for agents#2115
lionello merged 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>
@lionello lionello merged commit 5543429 into main May 19, 2026
14 checks passed
@lionello lionello deleted the sam/add-linting-enforcement-agents-01krp2 branch May 19, 2026 20:01
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.

2 participants