Skip to content

Instantly share code, notes, and snippets.

@olliebun
Created October 16, 2018 09:43
Show Gist options
  • Save olliebun/dc4979d2b2a04adc9ee3f7a3f776672a to your computer and use it in GitHub Desktop.
Save olliebun/dc4979d2b2a04adc9ee3f7a3f776672a to your computer and use it in GitHub Desktop.
gometalinter tips
# install gometalinter
go get -u github.com/alecthomas/gometalinter/...
# run gometalinter against the present code tree
# see docs here: https://github.com/alecthomas/gometalinter
gometalinter \
--vendor \
./... \
--disable-all \
--enable deadcode \
--enable dupl \
--enable errcheck \
--enable goconst \
--enable golint \
--enable gofmt \
--enable gosec \
--enable nakedret \
--enable structcheck \
--enable unconvert \
--enable unparam \
--enable unused \
--enable varcheck \
--enable vet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment