chore: add golangci-lint config and fix lint issues #88
Loading…
Reference in New Issue
No description provided.
Delete Branch "muel/gitlink-cli:chore/add-lint-and-fix-issues"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
.golangci.ymlwith 8 essential linters (errcheck, govet, ineffassign, staticcheck, unused, errorlint, gosec, misspell)errors.Asinstead of type assertion in api error handling%winstead of%vfor error wrappingsortedStringsfunctionint()conversionclampIntsignature (remove always-zero minValue param)make linttarget, include inmake checkpipeline (fmt → vet → lint → test)Test plan
make checkpasses (fmt + vet + lint + test)golangci-lint run ./...reports 0 issues? Generated with Claude Code