Module: MetzScan::Analyzers::InheritanceDescendants::Triage
- Defined in:
- lib/metz_scan/analyzers/inheritance_descendants/triage.rb
Constant Summary collapse
- BROAD_ROOT_CONFIDENCE =
"low"- BROAD_ROOT_TRIAGE_SEVERITY =
"broad base"- BROAD_ROOT_TRIAGE_SUMMARY =
"Broad inheritance base; review only when shared behavior changes often " \ "or descendants diverge."
Class Method Summary collapse
Class Method Details
.attributes_for(root_kind) ⇒ Object
14 15 16 |
# File 'lib/metz_scan/analyzers/inheritance_descendants/triage.rb', line 14 def attributes_for(root_kind) root_kind ? broad_root_attributes : candidate_attributes end |
.broad_root_attributes ⇒ Object
23 24 25 26 |
# File 'lib/metz_scan/analyzers/inheritance_descendants/triage.rb', line 23 def broad_root_attributes { project_analyzer_status: PROJECT_ANALYZER_STATUS, confidence: BROAD_ROOT_CONFIDENCE, triage_severity: BROAD_ROOT_TRIAGE_SEVERITY, triage_summary: BROAD_ROOT_TRIAGE_SUMMARY } end |
.candidate_attributes ⇒ Object
18 19 20 21 |
# File 'lib/metz_scan/analyzers/inheritance_descendants/triage.rb', line 18 def candidate_attributes { project_analyzer_status: PROJECT_ANALYZER_STATUS, confidence: CONFIDENCE, triage_severity: TRIAGE_SEVERITY, triage_summary: TRIAGE_SUMMARY } end |