golangci-lint-wrapper

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2025 License: MIT Imports: 18 Imported by: 0

README

golangci-lint wrapper

This project is a wrapper around golangci-lint that can be used as a Go tool. The wrapper will automatically download golangci-lint, save it in a subdirectory of your project, and run it from there once it's been downloaded.

Install:

go get -tool github.com/francescomari/golangci-lint-wrapper

Install and run the latest version of golangci-lint:

go tool golangci-lint-wrapper run

Alternatively, install and run a specific version of golangci-lint:

GOLANGCI_LINT_VERSION=2.7.2 go tool golangci-lint-wrapper

You might want to add the .tools directory to your .gitignore:

echo .tools >>.gitignore

The wrapper only downloads golangci-lint the first time it's invoked. After that, the local copy in the .tools directory is used. If you want to force the wrapper to download the executable again, remove golangci-lint (or golangci-lint.exe) from the .tools directory and invoke the wrapper again.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL