fabro/.fabro/workflows/code-review/schemas/findings.schema.json
2026-08-28 13:53:59 -04:00

71 lines
1.9 KiB
JSON

{
"type": "object",
"required": ["findings"],
"properties": {
"findings": {
"type": "array",
"maxItems": 25,
"items": {
"type": "object",
"required": [
"file",
"start_line",
"end_line",
"summary",
"short_summary",
"failure_scenario",
"category",
"issue_type",
"severity",
"confidence"
],
"properties": {
"file": { "type": "string" },
"line": {
"type": "integer",
"description": "Deprecated single-line anchor; use start_line and end_line."
},
"start_line": { "type": "integer", "minimum": 1 },
"end_line": { "type": "integer", "minimum": 1 },
"rule_id": { "type": "string" },
"summary": { "type": "string" },
"short_summary": { "type": "string", "maxLength": 60 },
"failure_scenario": { "type": "string" },
"suggestion_code": { "type": "string", "maxLength": 8000 },
"category": {
"type": "string",
"enum": [
"correctness",
"reuse",
"simplification",
"efficiency",
"altitude",
"conventions",
"test-coverage"
]
},
"issue_type": {
"type": "string",
"enum": [
"bug",
"security",
"performance",
"maintainability",
"test",
"style",
"documentation"
]
},
"severity": {
"type": "string",
"enum": ["HIGH", "MEDIUM", "LOW"]
},
"confidence": {
"type": "string",
"enum": ["HIGH", "MEDIUM", "LOW"]
}
}
}
}
}
}