addedInput schema / $defs
Added value: +{
+ "FindingIn": {
+ "additionalProperties": true,
+ "description": "A finding written from a build_review_packet hunk.",
+ "properties": {
+ "confidence": {
+ "anyOf": [
+ {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Defaults to 0.5.",
+ "title": "Confidence"
+ },
+ "file": {
+ "description": "Path exactly as in the hunk's `file` field.",
+ "title": "File",
+ "type": "string"
+ },
+ "fix": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Compliant replacement code.",
+ "title": "Fix"
+ },
+ "line": {
+ "description": "Line inside that hunk's start_line..end_line.",
+ "minimum": 1,
+ "title": "Line",
+ "type": "integer"
+ },
+ "message": {
+ "description": "What is wrong in this code and why it violates the rule.",
+ "title": "Message",
+ "type": "string"
+ },
+ "quote": {
+ "description": "Verbatim passage (>= 20 characters) copied from that rule's text or examples.",
+ "title": "Quote",
+ "type": "string"
+ },
+ "rule_id": {
+ "description": "A rule_id from the hunk's candidate_rules, e.g. EXP34-C.",
+ "title": "Rule Id",
+ "type": "string"
+ },
+ "severity": {
+ "anyOf": [
+ {
+ "enum": [
+ "error",
+ "warning",
+ "note"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Overrides the rule's default severity.",
+ "title": "Severity"
+ }
+ },
+ "required": [
+ "rule_id",
+ "file",
+ "line",
+ "message",
+ "quote"
+ ],
+ "title": "FindingIn",
+ "type": "object"
+ },
+ "PacketIn": {
+ "additionalProperties": true,
+ "properties": {
+ "hunks": {
+ "description": "The packet's hunks; only file, start_line, end_line and candidate_rules[].rule_id are read.",
+ "items": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "title": "Hunks",
+ "type": "array"
+ }
+ },
+ "required": [
+ "hunks"
+ ],
+ "title": "PacketIn",
+ "type": "object"
+ }
+}
addedInput schema / properties / findings
Added value: +{
+ "description": "Findings to check; an empty list is valid.",
+ "items": {
+ "$ref": "#/$defs/FindingIn"
+ },
+ "title": "Findings",
+ "type": "array"
+}
removedInput schema / properties / findings_json
Removed value: -{
- "title": "Findings Json",
- "type": "string"
-}
addedInput schema / properties / packet
Added value: +{
+ "anyOf": [
+ {
+ "$ref": "#/$defs/PacketIn"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The build_review_packet result (or just {hunks}) to enforce hunk and candidate-rule bounds. Strongly recommended."
+}
removedInput schema / properties / packet_json
Removed value: -{
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "title": "Packet Json"
-}
addedInput schema / properties / profile / description
Added value: +"Review profile: 'default' (plain SEI CERT), 'ceph' (Ceph severities, suppressions and idioms) or an absolute path to a profile .yaml file."
addedInput schema / properties / profile / examples
Added value: +[
+ "default",
+ "ceph"
+]
changedInput schema / required
Previous value: -[
- "findings_json"
-]New value: +[
+ "findings"
+]
changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "additionalProperties": true,
+ "properties": {
+ "accepted": {
+ "description": "Grounded findings in the check_files finding shape plus quote and fix; pass to format_findings.",
+ "items": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "title": "Accepted",
+ "type": "array"
+ },
+ "rejected": {
+ "description": "{finding, reasons[]} for each rejected finding.",
+ "items": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "title": "Rejected",
+ "type": "array"
+ },
+ "summary": {
+ "additionalProperties": {
+ "type": "integer"
+ },
+ "description": "{accepted, rejected} counts.",
+ "title": "Summary",
+ "type": "object"
+ }
+ },
+ "required": [
+ "accepted",
+ "rejected",
+ "summary"
+ ],
+ "title": "Validation",
+ "type": "object"
+}