MCPcopy Create free account
hub / github.com/NVIDIA/SkillSpector / _make_finding

Function _make_finding

tests/nodes/test_analysis_completeness.py:29–50  ·  view source on GitHub ↗
(**kwargs)

Source from the content-addressed store, hash-verified

27
28
29def _make_finding(**kwargs) -> Finding:
30 defaults = {
31 "rule_id": "PE3",
32 "message": "Credential Access",
33 "severity": "HIGH",
34 "confidence": 0.9,
35 "file": "tool.py",
36 "start_line": 1,
37 "end_line": 1,
38 "remediation": "Remove",
39 "tags": ["test"],
40 "context": "ctx",
41 "matched_text": "match",
42 "category": "priv_esc",
43 "pattern": "PE3",
44 "finding": "snippet",
45 "explanation": "explain",
46 "code_snippet": "code",
47 "intent": None,
48 }
49 defaults.update(kwargs)
50 return Finding(**defaults)
51
52
53class TestBuildAnalysisCompleteness:

Calls 1

FindingClass · 0.90

Tested by

no test coverage detected