MCPcopy Create free account
hub / github.com/ParzivalHack/PySpector / triage_command

Function triage_command

src/pyspector/cli.py:911–931  ·  view source on GitHub ↗

The TUI command for baselining.

(report_file: Path)

Source from the content-addressed store, hash-verified

909
910 # Separate the two filter passes so we can count each independently
911 severity_passed = [
912 issue for issue in raw_issues
913 if severity_map[str(issue.severity).split('.')[-1].upper()] >= min_severity_val
914 ]
915 final_issues = [
916 issue for issue in severity_passed
917 if issue.get_fingerprint() not in ignored_fingerprints
918 ]
919
920 _severity_filtered = len(raw_issues) - len(severity_passed)
921 _baseline_ignored = len(severity_passed) - len(final_issues)
922
923 if stats:
924 stats.record_final_issues(
925 final_issues,
926 severity_filtered=_severity_filtered,
927 baseline_ignored=_baseline_ignored,
928 )
929
930 # ── Generate Report ────────────────────────────────────────────────────
931 reporter = Reporter(final_issues, report_format)
932 output = reporter.generate()
933
934 if output_file:

Callers

nothing calls this directly

Calls 1

run_triage_tuiFunction · 0.85

Tested by

no test coverage detected