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
Tried to suppress G307 issue similar to G104 as mentioned in the readme file
{ "G307": { "os.File": ["Close"] } }
defer os.File.Close() run with this conf:
defer os.File.Close()
Version: dev Git tag: Build date:
go version go1.18.5 linux/amd64
Ubuntu x64
Dont know if this rule is supported, if it is then this code should not have flagged.
This code snippet is getting flagged in the gosec report.
The text was updated successfully, but these errors were encountered:
ruled removed in #900
Sorry, something went wrong.
No branches or pull requests
Summary
Tried to suppress G307 issue similar to G104 as mentioned in the readme file
Steps to reproduce the behavior
defer os.File.Close()
run with this conf:
gosec version
Version: dev
Git tag:
Build date:
Go version (output of 'go version')
go version go1.18.5 linux/amd64
Operating system / Environment
Ubuntu x64
Expected behavior
Dont know if this rule is supported, if it is then this code should not have flagged.
Actual behavior
This code snippet is getting flagged in the gosec report.
The text was updated successfully, but these errors were encountered: