Linter that checks if SQL rows/statements are closed. Unclosed rows and statements may cause DB connection pool exhaustion.
make build
make install
In your project directory:
go vet -vettool=$(which sqlclosecheck) ./...
go install github.com/ryanrolds/sqlclosecheck@latest
go vet -vettool=${GOPATH}/bin/sqlclosecheck ./...
Get linter workingAdded some basic test casesRequire that Close be deferredAdd sqlx checkingTest across a bunch of projectsIntroduce linter to golangci-lint.