Skip to content

Instantly share code, notes, and snippets.

@uudashr
Last active May 31, 2018 04:41
Show Gist options
  • Save uudashr/15a656fd005fcca82e59300264a91845 to your computer and use it in GitHub Desktop.
Save uudashr/15a656fd005fcca82e59300264a91845 to your computer and use it in GitHub Desktop.
Golang linter scripts for golangci-lint
#!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