Last active
May 31, 2018 04:41
-
-
Save uudashr/15a656fd005fcca82e59300264a91845 to your computer and use it in GitHub Desktop.
Golang linter scripts for golangci-lint
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
#!bin/sh | |
golangci-lint run \ | |
--exclude-use-default=false \ | |
--enable=golint \ | |
--enable=gocyclo \ | |
--enable=goconst \ | |
--enable=unconvert \ | |
--exclude='^Error return value of `.*\.Log` is not checked$$' \ | |
--exclude='^G104: Errors unhandled\.$$' \ | |
--exclude='^G304: Potential file inclusion via variable$$' \ | |
./... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment