Closed notinecrafter closed 8 months ago
@notinecrafter Does this happen on Credo 1.7.x as well? Could you check?
@notinecrafter Checking in đŸ‘†
Closing this because I suspect this has been fixed in Credo 1.7 - if I am wrong, please re-open! :+1:
Precheck
This issue occurs when having only two exceptions, and is therefore quite close to https://github.com/rrrene/credo/issues/969. I personally feel that this is slightly different, as this is more about the explanation text rather than that it shows up at all, but feel free to disclose it.
Environment
mix credo -v
): 1.6.7-ref.main.bcd8bf6+uncommittedchangeselixir -v
): Erlang/OTP 25 [erts-13.1.1] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit:ns] [dtrace]; Elixir 1.14.1 (compiled with Erlang/OTP 25)What were you trying to do?
I had two custom exceptions defined: a
NotLoggedInError
, and aTokenManagerExitException
. I then ranmix credo
.Expected outcome
Exception modules should be named consistently. It seems your strategy is to suffix them with
Error
, butTokenManagerExitException
does not follow that convention.Actual outcome
Exception modules should be named consistently. It seems your strategy is to prefix them with
Not
, butTokenManagerExitException
does not follow that convention.Notes
Renaming
TokenManagerExitException
toTokenManagerExitError
resulted in this Exception being removed.