issue.ex (782B)
1 defmodule Credo.Issue do 2 @moduledoc """ 3 `Issue` structs represent all issues found during the code analysis. 4 """ 5 6 @type t :: %__MODULE__{} 7 8 defstruct check: nil, 9 category: nil, 10 priority: 0, 11 severity: nil, 12 message: nil, 13 filename: nil, 14 line_no: nil, 15 column: nil, 16 exit_status: 0, 17 # optional: the String that triggered the check to fail 18 trigger: nil, 19 # optional: whether the issue is old, new or fixed 20 diff_marker: nil, 21 # optional: metadata filled in by the check 22 meta: [], 23 # optional: the name of the module, macro or 24 # function where the issue was found 25 scope: nil 26 end