We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The staticcheck command provides options to pass in flags like -tags (to specify which build flags to use) - more examples here: https://staticcheck.io/docs/running-staticcheck/cli/
staticcheck
-tags
So it's possible to run:
staticcheck -tags=mybuildtag ./...
How can one pass similar tags to the pre-commit hook?
- id: go-static-check args: - "-tags=mybuildtag"
However, it seems these are parsed as directory options.
Any guidance would be highly appreciated, thanks!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The
staticcheck
command provides options to pass in flags like-tags
(to specify which build flags to use) - more examples here: https://staticcheck.io/docs/running-staticcheck/cli/So it's possible to run:
How can one pass similar tags to the pre-commit hook?
Options tried
However, it seems these are parsed as directory options.
Any guidance would be highly appreciated, thanks!
The text was updated successfully, but these errors were encountered: