MCPcopy Index your code
hub / github.com/github/spec-kit / _finding

Function _finding

src/specify_cli/integration_status.py:35–55  ·  view source on GitHub ↗
(
    severity: str,
    code: str,
    message: str,
    *,
    integration: str | None = None,
    path: str | None = None,
    suggestion: str | None = None,
)

Source from the content-addressed store, hash-verified

33
34
35def _finding(
36 severity: str,
37 code: str,
38 message: str,
39 *,
40 integration: str | None = None,
41 path: str | None = None,
42 suggestion: str | None = None,
43) -> dict[str, str]:
44 item = {
45 "severity": severity,
46 "code": code,
47 "message": message,
48 }
49 if integration:
50 item["integration"] = integration
51 if path:
52 item["path"] = path
53 if suggestion:
54 item["suggestion"] = suggestion
55 return item
56
57
58def _status(findings: list[dict[str, str]]) -> str:

Calls

no outgoing calls

Tested by

no test coverage detected