Created
October 16, 2018 09:43
-
-
Save olliebun/dc4979d2b2a04adc9ee3f7a3f776672a to your computer and use it in GitHub Desktop.
gometalinter tips
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install gometalinter | |
go get -u github.com/alecthomas/gometalinter/... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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