Skip to content

Commit

Permalink
fix: being able to use the :exit_status option value
Browse files Browse the repository at this point in the history
  • Loading branch information
rNoz committed Nov 19, 2024
1 parent 69048e5 commit 25a8e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/credo/check.ex
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ defmodule Credo.Check do

priority = Priority.to_integer(issue_priority)

exit_status_or_category = Params.exit_status(params, check) || issue_category
exit_status_or_category = opts[:exit_status] || Params.exit_status(params, check) || issue_category
exit_status = Check.to_exit_status(exit_status_or_category)

line_no = opts[:line_no]
Expand Down

0 comments on commit 25a8e0a

Please sign in to comment.