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
string-to-int-signedness-cast.yaml
The string-to-int-signedness-cast.yaml rule should exclude from results casts that have explicit checks on a value. eg
a, err := strconv.ParseInt(X, 10, 64) if err != nil { panic(err) } if a < 0 { panic("X") } b := uint64(a)
This is marked as truncating cast, but the if makes it valid.
if
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The
string-to-int-signedness-cast.yaml
rule should exclude from results casts that have explicit checks on a value. egThis is marked as truncating cast, but the
if
makes it valid.The text was updated successfully, but these errors were encountered: