Skip to content

Commit

Permalink
Remove the rule's full description from SARIF (#320)
Browse files Browse the repository at this point in the history
The full description appears as RST encoded text which SARIF processors
like GitHub don't render.

Signed-off-by: Eric Brown <[email protected]>
  • Loading branch information
ericwb authored Mar 4, 2024
1 parent 4386cb3 commit 9480250
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions precli/renderers/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ def create_rule_array(self, run: Run):
for rule in run.tool.rules:
reporting_descriptor = sarif_om.ReportingDescriptor(
id=rule.id,
full_description=sarif_om.MultiformatMessageString(
text=rule.full_descr
),
help_uri=rule.help_url,
message_strings={
"errorMessage": sarif_om.MultiformatMessageString(
Expand Down

0 comments on commit 9480250

Please sign in to comment.