gostyle
THIS IS A WORK IN PROGRESS AND PROOF OF CONCEPT AND STUDY WORK
Usage
$ go vet -vettool=`which gostyle`
Analyzers
Ignore Directive
//lint:ignore
//nolint:all
//nostyle:all
//nostyle:[analyzer name]
(e.g. //nostyle:mixedcaps
)
Install
go install:
$ go install github.com/k1LoW/gostyle@latest
deb:
$ export GOSTYLE_VERSION=X.X.X
$ curl -o gostyle.deb -L https://github.com/k1LoW/gostyle/releases/download/v$GOSTYLE_VERSION/gostyle_$GOSTYLE_VERSION-1_amd64.deb
$ dpkg -i gostyle.deb
RPM:
$ export GOSTYLE_VERSION=X.X.X
$ yum install https://github.com/k1LoW/gostyle/releases/download/v$GOSTYLE_VERSION/gostyle_$GOSTYLE_VERSION-1_amd64.rpm
apk:
$ export GOSTYLE_VERSION=X.X.X
$ curl -o gostyle.apk -L https://github.com/k1LoW/gostyle/releases/download/v$GOSTYLE_VERSION/gostyle_$GOSTYLE_VERSION-1_amd64.apk
$ apk add gostyle.apk
homebrew tap:
$ brew install k1LoW/tap/gostyle
manually:
Download binary from releases page