Skip to content

Commit e7b18fc

Browse files
tae2089claude
andcommitted
fix: add ccg lint to pre-commit hook pipeline
Hook now runs: ccg build . && ccg docs && ccg lint Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 40531cf commit e7b18fc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

internal/cli/hooks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const hookGuardEnd = "# --- ccg hook end ---"
1414

1515
const hookBody = `
1616
` + hookGuardBegin + `
17-
ccg build . && ccg docs
17+
ccg build . && ccg docs && ccg lint
1818
` + hookGuardEnd + `
1919
`
2020

internal/cli/hooks_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func TestHooksInstall_CreatesPreCommitHook(t *testing.T) {
2525
}
2626

2727
hook := string(content)
28-
for _, want := range []string{"#!/bin/sh", "ccg build", "ccg docs"} {
28+
for _, want := range []string{"#!/bin/sh", "ccg build", "ccg docs", "ccg lint"} {
2929
if !strings.Contains(hook, want) {
3030
t.Errorf("expected %q in hook, got:\n%s", want, hook)
3131
}

0 commit comments

Comments
 (0)