polyfloyd / go-errorlint

A source code linter that can be used to find code that will cause problems with Go's error wrapping scheme
MIT License
248 stars 19 forks source link

Add context errors as allowed direct comparisons #63

Closed jkz-stripe closed 12 months ago

jkz-stripe commented 12 months ago

The DeadlineExceeded and Canceled errors from the context package can be checked directly. This change adds those errors to the allow list + tests.

polyfloyd commented 12 months ago

Thanks!