-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
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
Support gosec (gas) linter options #177
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@jirfag Just checking in. I haven't checked myself recently, but are gosec (gas) linter options supported? |
Yes to try it with the latest golangci-lint. From the docs, https://golangci-lint.run/usage/linters/ it says its possible to enable gosec. Will post back after trying |
Yeah I think enabling Thanks for checking @ats0stv |
Thanks @wfernandes. I checked, with -E option and also in another attempt to disable all other linters and enable just gosec. However, in both cases, it does not seem to work. I believe this bug is still valid. |
It would be nice to be able to fully configure it. Right now golangci-lint is using the default configuration. Being able to set options on every single rule they have (like using 644 instead of 600 for G306) would be much more useful. Right now I have to silence most rules because they are too strict, even though they can be configured. Edit: To add some clarity, what @wfernandes was asking was to be able to enable/disable rules like |
I have the same problem, that I would like to configure gosec's rules via golangci-lint. |
It would be nice to support
gas
linter options like-include
and-exclude
as part of thelinters-settings
in the golangci-lint config files.Thanks.
The text was updated successfully, but these errors were encountered: