Closed
Description
Issues claims that an example output would look like this:
{
"type": "issue",
"check_name": "Bug Risk/Unused Variable",
"description": "Unused local variable `foo`",
"content": Content,
"categories": ["Complexity"],
"location": Location,
"other_locations": [Location], # <<< note that
"remediation_points": 50000,
"severity": Severity,
"fingerprint": "abcd1234"
}
while the text below explains trace
(which isn't part of the JSON blob):
trace
-- Optional. A Trace object representing other interesting source code locations related to this issue.
Further down we find an explanation of the location
key, that's explaining that (I've highlighted what I'm confused about):
Locations refer to ranges of a source code file. A Location contains a path, a source range, (expressed as lines or positions), and an optional array of other_locations.
What is correct, where does other_locations
go? 😃
Thanks,
Stephan
Metadata
Metadata
Assignees
Labels
No labels