/golangci-lint

A lib to automate golangci-lint, such as auto-download the executable of golangci-lint.

Primary LanguageGo

Overview

A manager to automate golangci-lint, such as auto-download the executable of golangci-lint.

Install and run

If the Go version is greater than v1.17:

go run github.com/ysmood/golangci-lint@latest

If the Go version is greater than v1.15:

go install github.com/ysmood/golangci-lint@latest
golangci-lint

If the Go version is less than v1.16:

go get github.com/ysmood/golangci-lint
golangci-lint

Arguments

Pass arguments to the manager:

golangci-lint -h

Arguments after the -- will only be passed to the golangci-lint:

golangci-lint -- -h