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
os.Create creates file with permission 0666. https://pkg.go.dev/os#Create
os.Create is usually preffered to create & truncate a file so it can accidentally bypass G306 even if developers want to enforce stricter permissions.
I'm not sure what can be a reasonable behavior. Reporting os.Create if allowed permission is stricter than 0666 can be an instant one.
The text was updated successfully, but these errors were encountered:
Thanks for bringing this up. I think adding a new rule for this, it would be appropriate.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
os.Create creates file with permission 0666.
https://pkg.go.dev/os#Create
os.Create is usually preffered to create & truncate a file so it can accidentally bypass G306 even if developers want to enforce stricter permissions.
I'm not sure what can be a reasonable behavior. Reporting os.Create if allowed permission is stricter than 0666 can be an instant one.
The text was updated successfully, but these errors were encountered: