Conversation
c991849 to
b31f613
Compare
|
I have a reasonable use case for |
Sure, it can be useful in general. This is just to disallow the pattern |
|
Can you send me a link to the code where this was necessary? |
Guess I used |
Same, same - the analyzer will find both patterns. In the first case, the analyzer will not be triggered because the The second case could be written with |
b31f613 to
7be1d96
Compare
Results of running on the Verify solution7 occurrences detected, none of which were false positives. |
7be1d96 to
c256a52
Compare
53db82d to
b4b184a
Compare
This pattern is dangerous because it makes it easy to write very subtle bugs that ignore error handling.
b4b184a to
dba8606
Compare
|
LGTM. Should we consider ObservedTaskResult.ignore? |
Sure, though I think it might belong in a separate analyzer suite. It's common to package analyzers with a library, so might make sense to maintain it with the implementation (which I think might make sense to put into a separate library anyway). |
This pattern is dangerous because it makes it easy to write very subtle bugs that ignore error handling.