Scoria.WarningInventory.Cluster (scoria v0.1.0)

Copy Markdown View Source

Stable cluster registry for compiler warning classification.

Rules are evaluated in declaration order; the first match wins.

Summary

Functions

Returns a stable cluster_id atom for a parsed warning map.

Types

signal_kind()

@type signal_kind() :: :compile_warning | :ex_unit | :runtime_log

warning_map()

@type warning_map() :: %{
  file: String.t(),
  line: non_neg_integer(),
  message: String.t(),
  signal_kind: signal_kind()
}

Functions

match(map)

@spec match(warning_map()) :: atom()

Returns a stable cluster_id atom for a parsed warning map.