@kevinrabun/judges 3.124.2 → 3.124.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/report.js +8 -0
- package/package.json +1 -1
- package/server.json +2 -2
package/dist/commands/report.js
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { existsSync, writeFileSync, statSync } from "fs";
|
|
13
13
|
import { resolve, basename } from "path";
|
|
14
14
|
import { generateRepoReportFromLocalPath } from "../reports/public-repo-report.js";
|
|
15
|
+
import { findingsToSarif } from "../formatters/sarif.js";
|
|
15
16
|
function parseReportArgs(argv) {
|
|
16
17
|
const args = {
|
|
17
18
|
path: ".",
|
|
@@ -105,6 +106,13 @@ export function runReport(argv) {
|
|
|
105
106
|
timestamp: new Date().toISOString(),
|
|
106
107
|
}, null, 2);
|
|
107
108
|
break;
|
|
109
|
+
case "sarif": {
|
|
110
|
+
console.error("⚠ 'judges report --format sarif' produces a summary SARIF with limited detail.");
|
|
111
|
+
console.error(" For full SARIF output with per-finding locations, use: judges eval <dir> --format sarif --output report.sarif");
|
|
112
|
+
const sarif = findingsToSarif([], projectName);
|
|
113
|
+
output = JSON.stringify(sarif, null, 2);
|
|
114
|
+
break;
|
|
115
|
+
}
|
|
108
116
|
case "html": {
|
|
109
117
|
// Wrap as a simple HTML page with the markdown
|
|
110
118
|
const escapedMd = result.markdown.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
package/package.json
CHANGED
package/server.json
CHANGED
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
"mimeType": "image/png"
|
|
17
17
|
}
|
|
18
18
|
],
|
|
19
|
-
"version": "3.124.
|
|
19
|
+
"version": "3.124.4",
|
|
20
20
|
"packages": [
|
|
21
21
|
{
|
|
22
22
|
"registryType": "npm",
|
|
23
23
|
"identifier": "@kevinrabun/judges",
|
|
24
|
-
"version": "3.124.
|
|
24
|
+
"version": "3.124.4",
|
|
25
25
|
"transport": {
|
|
26
26
|
"type": "stdio"
|
|
27
27
|
}
|