Skip to content

Commit

Permalink
Make reason we failed to fix more informative
Browse files Browse the repository at this point in the history
  • Loading branch information
drdavella authored Apr 3, 2024
1 parent 1b6e4e4 commit 27e8036
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions codetf.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,34 @@
"description": "Whether the finding was fixed by the codemod"
},
"reason": {
"type": "string",
"description": "Reason the finding was not fixed"
}
"type": "array",
"items": {
"failure": {
"type": "object",
"properties": {
"description": {
"type": "string"
"description": "A human-readable description of the reason the fix failed at this location",
},
"path": {
"type": "string",
"description": "Path of the file where the fix failed to apply",
},
"line": {
"type": "integer",
"description": "(Optional) line number where the fix failed to apply",
},
"snippet": {
"type": "string"
"description": "(Optional) snippet of code that we failed to fix",
}
},
"required": ["description", "path"],
"additionalProperties": true
}
},
"minItems": 1
},
},
"additionalProperties": true,
"required": ["id", "fixed"],
Expand Down

0 comments on commit 27e8036

Please sign in to comment.