Skip to content

Instantly share code, notes, and snippets.

@MicahParks
Last active December 6, 2022 03:14
Show Gist options
  • Save MicahParks/dc84167e50b29f1dbe8385d8130d27ca to your computer and use it in GitHub Desktop.
Save MicahParks/dc84167e50b29f1dbe8385d8130d27ca to your computer and use it in GitHub Desktop.
Golang linting one liner
go install github.com/mgechev/revive@latest && go install honnef.co/go/tools/cmd/staticcheck@latest && go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest && echo 'Output for "go vet ./...":' && go vet ./... || true && echo 'Output for "staticcheck ./...":' && staticcheck ./... || true && echo 'Output for "revive ./...":' && revive ./... || true && echo 'Output for "golangci-lint run":' && golangci-lint run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment