chore: add golangci-lint config and fix lint issues #88

Merged
wbtiger merged 1 commits from muel/gitlink-cli:chore/add-lint-and-fix-issues into master 2026-05-31 00:38:34 +08:00

1 Commits

Author SHA1 Message Date
wbtiger f7263cc466 chore: add golangci-lint config and fix lint issues
- Add .golangci.yml with 8 essential linters (errcheck, govet,
  ineffassign, staticcheck, unused, errorlint, gosec, misspell)
- Fix real bugs: errors.As, %w wrapping, nil map check, dead code,
  unnecessary conversion, unused parameters
- Add `make lint` target, include it in `make check` pipeline
- Update pre-commit hook to run lint step

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-31 00:37:45 +08:00