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
Go built-in functions, such as make([]string, 0, 10) are not recognized when excluding functions
make([]string, 0, 10)
Create a function like
func example4() { a := make([]int, 0, 10) a[0] = 1 }
Run
$ go-mnd -checks=argument -ignored-functions=make` Magic number: 10, in <argument> detected
v2.4.0
go version go version go1.16.3 darwin/amd64
macOS 10.15.7
Arguments to make() should have been ignored
make()
Arguments to make() were checked
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Short summary
Go built-in functions, such as
make([]string, 0, 10)
are not recognized when excluding functionsSteps to reproduce the behavior
Create a function like
Run
go-mnd version or commit ref
v2.4.0
Go version (output of 'go version')
Operating system / Environment
macOS 10.15.7
Expected behavior
Arguments to
make()
should have been ignoredActual behavior
Arguments to
make()
were checkedThe text was updated successfully, but these errors were encountered: