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

Function _severity_key

src/pyspector/reporting.py:42–44  ·  view source on GitHub ↗

Normalize enum-like severity values.

(issue)

Source from the content-addressed store, hash-verified

40
41
42def _severity_key(issue) -> str:
43 """Normalize enum-like severity values."""
44 return str(issue.severity).split(".")[-1].upper()
45
46
47def _clean(obj):

Callers 2

to_consoleMethod · 0.85
to_sarifMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected