Skip to content

Commit 53ff513

Browse files
committed
Merge pull request #19 from codeclimate/severity
Add severity
2 parents 16aeeb0 + c06c292 commit 53ff513

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

SPEC.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,22 +62,24 @@ An `issue` represents a single instance of a real or potential code problem, det
6262
"type": "issue",
6363
"check_name": "Bug Risk/Unused Variable",
6464
"description": "Unused local variable `foo`",
65+
"content": Content,
6566
"categories": ["Complexity"],
6667
"location": Location,
68+
"other_locations": [Location],
6769
"remediation_points": 500,
68-
"content": Content,
69-
"other_locations": [Location]
70+
"severity": Severity
7071
}
7172
```
7273

7374
* `type` -- **Required**. Must always be "issue".
7475
* `check_name` -- **Required**. A unique name representing the static analysis check that emitted this issue.
7576
* `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.
7678
* `categories` -- **Required**. At least one category indicating the nature of the issue being reported.
7779
* `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.
8080
* `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.
8183

8284
#### Descriptions
8385

0 commit comments

Comments
 (0)