Skip to content

Commit

Permalink
Use .explanation() for checks
Browse files Browse the repository at this point in the history
  • Loading branch information
rrrene committed Apr 26, 2024
1 parent 46d4bf8 commit 8e8808a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/credo/cli/command/explain/explain_command.ex
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ defmodule Credo.CLI.Command.Explain.ExplainCommand do
%{
category: check.category(),
check: check,
explanation_for_issue: check.explanation,
explanation_for_issue: check.explanation(),
priority: check.base_priority()
}
end
Expand Down Expand Up @@ -181,7 +181,7 @@ defmodule Credo.CLI.Command.Explain.ExplainCommand do
category: issue.category,
check: issue.check,
column: issue.column,
explanation_for_issue: issue.check.explanation,
explanation_for_issue: issue.check.explanation(),
filename: issue.filename,
line_no: issue.line_no,
message: issue.message,
Expand Down

0 comments on commit 8e8808a

Please sign in to comment.