You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: SPEC.md
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -62,22 +62,24 @@ An `issue` represents a single instance of a real or potential code problem, det
62
62
"type": "issue",
63
63
"check_name": "Bug Risk/Unused Variable",
64
64
"description": "Unused local variable `foo`",
65
+
"content": Content,
65
66
"categories": ["Complexity"],
66
67
"location": Location,
68
+
"other_locations": [Location],
67
69
"remediation_points": 500,
68
-
"content": Content,
69
-
"other_locations": [Location]
70
+
"severity": Severity
70
71
}
71
72
```
72
73
73
74
*`type` -- **Required**. Must always be "issue".
74
75
*`check_name` -- **Required**. A unique name representing the static analysis check that emitted this issue.
75
76
*`description` -- **Required**. A string explaining the issue that was detected.
77
+
*`content` -- **Optional**. A markdown snippet describing the issue, including deeper explanations and links to other resources.
76
78
*`categories` -- **Required**. At least one category indicating the nature of the issue being reported.
77
79
*`location` -- **Required**. A `Location` object representing the place in the source code where the issue was discovered.
78
-
*`remediation_points` -- **Optional**. An abstract, relative integer indicating a rough estimate of how long it would take to resolve the reported issue.
79
-
*`content` -- **Optional**. A markdown snippet describing the issue, including deeper explanations and links to other resources.
80
80
*`other_locations` -- **Optional.** An array of `Location` objects useful for engines which highlight more than one source location in an issue.
81
+
*`remediation_points` -- **Optional**. An integer indicating a rough estimate of how long it would take to resolve the reported issue.
82
+
*`severity` -- **Optional**. A `Severity` string (`info`, `normal`, or `critical`) describing the potential impact of the issue found.
0 commit comments