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
defmodule NervesHub.Errors.Unauthorized do
defexception message: "not found", plug_status: 404
end
defmodule NervesHubWeb.NotFoundError do
defexception message: "not found", plug_status: 404
end
defmodule NervesHubWeb.UnauthorizedError do
defexception message: "forbidden", plug_status: 401
end
Expected outcome
No warnings.
Actual outcome
Consistency
┃
┃ [C] ↗ Exception modules should be named consistently. It seems your strategy is to prefix them with `Unauthorized`, but
┃ `NervesHubWeb.NotFoundError` does not follow that convention.
┃ lib/nerves_hub_web/errors.ex:5:11 #(NervesHubWeb.NotFoundError)
The text was updated successfully, but these errors were encountered:
Environment
mix credo -v
): 1.7.11elixir -v
): 1.18.0What were you trying to do?
Expected outcome
No warnings.
Actual outcome
The text was updated successfully, but these errors were encountered: