akoutmos / doctor

Ensure that your Elixir project documentation is healthy
MIT License
179 stars 15 forks source link

fix reporting on multi-clause callbacks #35

Closed pnezis closed 3 years ago

pnezis commented 3 years ago

In case of multi-clause callbacks a missing spec error was raised for clause bodies after the first @impl annotation. Fix the bug by checking if we already have parsed a function/arity body with an implementation annotation and pass this implementation to all subsequent clauses.

Add a custom behaviour unit test.

akoutmos commented 3 years ago

Thanks for fixing this issue!! Appreciate it :)