-
Notifications
You must be signed in to change notification settings - Fork 3
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
Whitelist driver.Valuer interface #9
Comments
Hello, As I said in PR #8 (comment), the signatures of the SQL elements seem too "generic", it can lead to false negatives (some methods will be ignored, but they should not). |
Sounds like a valid point. I totally missed that comment. On the other hand the interface is part of the standard library and one could argue that its counterintuitive to use a pointer receiver on a method with the signature Value() (any, error). Though I understand it's a conflict with the purpose of the linter itself. So unless a more specific matching of method signatures is implemented its seems like this can be closed. |
I think we can add an option, it will not be perfect but at least you will be able to ignore all |
This issue is related to issue #7 which has been fixed by PR #8 in order to reduce the number of false positives in the default configuration of the linter.
The interfaces driver.Valuer and sql.Scanner from the standard library conflict with each other and are commonly implemented by the same struct. This was already mentioned in this comment #7 (comment) but somehow was not implemented in the PR.
It would be nice to add driver.Valuer to the default exclusions.
The text was updated successfully, but these errors were encountered: