Skip to content

Commit

Permalink
Include help url with JSON output format (#2578)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored Oct 10, 2022
1 parent 23b63ae commit 6506998
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ansiblelint/formatters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ def format_result(self, matches: list[MatchError]) -> str:
issue["type"] = "issue"
issue["check_name"] = match.tag or match.rule.id # rule-id[subrule-id]
issue["categories"] = match.rule.tags
if match.rule.url:
# https://github.com/codeclimate/platform/issues/68
issue["url"] = match.rule.url
issue["severity"] = self._severity_to_level(match)
issue["description"] = self.escape(str(match.message))
issue["fingerprint"] = hashlib.sha256(
Expand Down

0 comments on commit 6506998

Please # to comment.