Skip to content
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

Exclude os.FileMode numbers by default #42

Open
HTechHQ opened this issue Nov 22, 2024 · 0 comments
Open

Exclude os.FileMode numbers by default #42

HTechHQ opened this issue Nov 22, 2024 · 0 comments

Comments

@HTechHQ
Copy link

HTechHQ commented Nov 22, 2024

Short summary

Exclude file mode / permissions by default. Similar to the exclusion of other number oriented functions like Date.

As file permissions are typically represented as numbers like in the following example, the linter could ignore that.
My current workaround is a //nolint statement, which makes the code actually less clear to read.

Steps to reproduce the behavior

_, err := os.OpenFile(outputFile, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0o644)


This is not a bug, but a proposal to change the behaviour and seams to affect all version of go-mnd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant