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
Here are some cases which mnd fails to detect:
mnd
package main import ( "fmt" ) func main() { ok() fail1() fail2() } func ok() { res := 42 * 2 fmt.Println(res) } func fail1() { const c = 24 res := c + (42 * 10) fmt.Println(res) } func fail2() { res := -12 fmt.Println(res) }
$ go vet -vettool $(which mnd) ./... # mndtest ./main.go:14:9: Magic number: 42, in <operation> detected ./main.go:14:14: Magic number: 2, in <operation> detected
The text was updated successfully, but these errors were encountered:
@leonklingele Thanks for the report! I'll fix it asap.
Sorry, something went wrong.
#9 Fix missing magic number in assign statement
a815e84
#9 Fix missing magic numbers in operations with parenthesis
3d1176f
Fixed all missing cases in v2.0.1. Thanks again for the report.
tommy-muehle
No branches or pull requests
Here are some cases which
mnd
fails to detect:The text was updated successfully, but these errors were encountered: