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

Method generate

src/pyspector/reporting.py:74–81  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

72 self.format = report_format
73
74 def generate(self) -> str:
75 if self.format == "json":
76 return self.to_json()
77 if self.format == "sarif":
78 return self.to_sarif()
79 if self.format == "html":
80 return self.to_html()
81 return self.to_console()
82
83
84 def to_console(self) -> str:

Calls 4

to_jsonMethod · 0.95
to_sarifMethod · 0.95
to_htmlMethod · 0.95
to_consoleMethod · 0.95