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
This rule might look like it finds all f() calls that contain at least 1 error-typed argument.
f()
error
m.Match(`f($*_, $err, $*_)`). Where(m["err"].Type.Is(`error`)). Report(`f() has error arg`)
It doesn't behave this way as gogrep may bind $err to something that is not error, especially if there is more than 1 argument in f() call.
$err
It's not obvious how to fix this, but it should be fixed.
How it could be solved (in theory):
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This rule might look like it finds all
f()
calls that contain at least 1error
-typed argument.It doesn't behave this way as gogrep may bind
$err
to something that is noterror
, especially if there is more than 1 argument inf()
call.It's not obvious how to fix this, but it should be fixed.
How it could be solved (in theory):
The text was updated successfully, but these errors were encountered: