Skip to content

lzap/golint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

golint

golint is a tool to manage and run golangci-lint binaries.

It automatically downloads and caches the specified version of golangci-lint, then executes it with the provided arguments.

Usage

go run github.com/lzap/golint@latest run

Results to:

2025/08/04 19:06:05 GOLINT_VERSION not set, fetching the latest version...
2025/08/04 19:06:05 ✅ Resolved latest version to v2.3.1
2025/08/04 19:06:05 ℹ️ Using cache directory: /home/lzap/.cache/golint
2025/08/04 19:06:05 ✅ Found cached linter binary at /home/lzap/.cache/golint/v2.3.1/golangci-lint
2025/08/04 19:06:05 🚀 Running golangci-lint v2.3.1 with args: [run]
main.go:94:23: Error return value of `resp.Body.Close` is not checked (errcheck)
        defer resp.Body.Close()
                             ^
main.go:131:23: Error return value of `resp.Body.Close` is not checked (errcheck)
        defer resp.Body.Close()
                             ^
main.go:148:17: Error return value of `gzr.Close` is not checked (errcheck)
        defer gzr.Close()
                       ^
main.go:179:23: Error return value of `outFile.Close` is not checked (errcheck)
                        defer outFile.Close()
                                           ^
4 issues:
* errcheck: 4
exit status 1

Configuration

  • GOLINT_VERSION: Version of golangci-lint to use. Defaults to latest.
  • GOLINT_CACHE: Overrides the default cache directory for storing binaries. Defaults to the user's cache directory (e.g., ~/.cache/golint).

Install locally

go install github.com/lzap/golint@latest

Authors

Vibe-coded with Google Gemini by Lukáš Zapletal

License

PUBLIC DOMAIN

About

tool to manage and run golangci-lint binaries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages