jonase / eastwood

Clojure lint tool
1.08k stars 66 forks source link

[Fix #385] Support an edge case for `extend-protocol` #392

Closed vemv closed 3 years ago

vemv commented 3 years ago

Fixes https://github.com/jonase/eastwood/issues/385

This false positive's origin can be tracked down to this commit:

https://github.com/jonase/eastwood/commit/7c0f432ee1be4748fb6cb765089872cd7640d27e

I think that commit made the mistake of conflating "this pattern should not trigger an exception" with "with pattern should trigger a linter fault".

Usages in the wild such as the following show that in fact the pattern is functional: