You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a sigil with a supporting private function. I prefixed the private function name with the sigil name, and when I updated credo it flagged it for not being in snake case.
Expected outcome
No errors
Actual outcome
┃ [R] ↗ Function/macro/guard names should be written in snake_case.
┃ lib/my_app.ex:6:8 #(MyApp.sigil_z_do)
It seems to happen with any function beginning with "sigil_" that is not in fact a sigil.
┃ [R] ↗ Function/macro/guard names should be written in snake_case.
┃ lib/my_app.ex:10:7 #(MyApp.sigil_do_something_else)
It seems a little odd to name a non-sigil function with a "sigil_" prefix, but as far as I'm aware there's nothing wrong with it.
Environment
mix credo -v
):elixir -v
):What were you trying to do?
I have a sigil with a supporting private function. I prefixed the private function name with the sigil name, and when I updated credo it flagged it for not being in snake case.
Expected outcome
No errors
Actual outcome
It seems to happen with any function beginning with "sigil_" that is not in fact a sigil.
It seems a little odd to name a non-sigil function with a "sigil_" prefix, but as far as I'm aware there's nothing wrong with it.
Seems related to #1146
The text was updated successfully, but these errors were encountered: