rrrene / credo

A static code analysis tool for the Elixir language with a focus on code consistency and teaching.
http://credo-ci.org/
MIT License
4.91k stars 414 forks source link

Credo.Check.Warning.Dbg: doesn't warn when using `&dbg/1` #1138

Open mhanberg opened 2 months ago

mhanberg commented 2 months ago

Precheck

Environment

What were you trying to do?

I noticed that calls like |> tap(&dbg/1) are not triggering the warning

Expected outcome

capturing dbg/1 should emit the warning

Actual outcome

capturing dbg/1 should emits no warning