Skip to content

v0.0.1: fix: Resolve all golangci-lint issues and add pre-commit hook

Choose a tag to compare

@yhuan123 yhuan123 released this 12 Nov 05:26
· 10 commits to main since this release
Changes:
- Fix all errcheck errors by handling return values
- Add package comments to all packages
- Fix unused parameter warnings
- Update .golangci.yml configuration
- Add pre-commit hook for automated linting
- Add installation scripts for git hooks
- Fix formatting with gofmt and goimports

Lint Configuration:
- Increase gocyclo complexity threshold to 30
- Exclude errcheck for fmt.* and defer Close/Flush
- Add package comment requirements
- Configure proper exclusions for test files

Pre-commit Hook:
- Auto-run gofmt and goimports before commit
- Run go vet and golangci-lint checks
- Run tests with -short flag
- Prevent commits with lint errors