Module: MetzScan::Commands::Scan::ProjectAnalyzerTriagePriority
- Defined in:
- lib/metz_scan/commands/scan/project_analyzer_triage_priority.rb
Constant Summary collapse
- PRIORITIES =
{ "status" => { "validated" => 0, "candidate" => 1, "experimental" => 2 }, "confidence" => { "high" => 0, "medium" => 1, "early" => 2, "low" => 3 }, "triage_severity" => { "design pressure" => 0, "manual review" => 1, "context required" => 2, "broad base" => 3, "shared dependency" => 4, "shared namespace" => 5, "setup orchestration" => 6 } }.freeze
Class Method Summary collapse
Class Method Details
.priority_for(name, value) ⇒ Object
31 32 33 34 |
# File 'lib/metz_scan/commands/scan/project_analyzer_triage_priority.rb', line 31 def priority_for(name, value) priorities = PRIORITIES.fetch(name) priorities.fetch(value, priorities.size) end |
.sort_key(metadata) ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/metz_scan/commands/scan/project_analyzer_triage_priority.rb', line 23 def sort_key() [ priority_for("status", ["status"]), priority_for("confidence", ["confidence"]), priority_for("triage_severity", ["triage_severity"]) ] end |