feat(cmd): add AI documentation generation and command tests
- Implemented `grokkit docs` command for generating language-specific documentation comments (godoc, PEP 257, Doxygen, etc.) with previews, backups, and auto-apply option
- Extracted message builder functions for commit, history, pr-describe, and review commands
- Added comprehensive unit tests for all command message builders (commit_test.go, docs_test.go, history_test.go, lint_test.go, prdescribe_test.go, review_test.go)
- Enforced 70% test coverage threshold in CI workflow
- Added .golangci.yml configuration with linters like govet, errcheck, staticcheck
- Updated Makefile to include -race in tests and add help target
- Updated README.md with new docs command details, workflows, and quality features
- Added .claude/ to .gitignore
- Configured default model for docs command in config.go
2026-03-02 20:13:50 +00:00
|
|
|
version: "2"
|
|
|
|
|
|
|
|
|
|
linters:
|
|
|
|
|
default: none
|
|
|
|
|
enable:
|
|
|
|
|
- govet
|
|
|
|
|
- errcheck
|
|
|
|
|
- staticcheck
|
|
|
|
|
- ineffassign
|
|
|
|
|
- unused
|
|
|
|
|
- gosimple
|
|
|
|
|
- misspell
|
|
|
|
|
|
|
|
|
|
settings:
|
|
|
|
|
errcheck:
|
|
|
|
|
check-type-assertions: true
|
|
|
|
|
check-blank: false
|
|
|
|
|
|
2026-03-02 21:21:21 +00:00
|
|
|
formatters:
|
|
|
|
|
enable:
|
|
|
|
|
- gofmt
|
|
|
|
|
|
feat(cmd): add AI documentation generation and command tests
- Implemented `grokkit docs` command for generating language-specific documentation comments (godoc, PEP 257, Doxygen, etc.) with previews, backups, and auto-apply option
- Extracted message builder functions for commit, history, pr-describe, and review commands
- Added comprehensive unit tests for all command message builders (commit_test.go, docs_test.go, history_test.go, lint_test.go, prdescribe_test.go, review_test.go)
- Enforced 70% test coverage threshold in CI workflow
- Added .golangci.yml configuration with linters like govet, errcheck, staticcheck
- Updated Makefile to include -race in tests and add help target
- Updated README.md with new docs command details, workflows, and quality features
- Added .claude/ to .gitignore
- Configured default model for docs command in config.go
2026-03-02 20:13:50 +00:00
|
|
|
run:
|
|
|
|
|
timeout: 5m
|