Exposing the help field in the SARIF report

This commit is contained in:
Clint Chester
2021-06-03 15:30:48 +00:00
committed by GitHub
parent fc90d87240
commit 92948470f4
4 changed files with 16 additions and 0 deletions

View File

@ -18,6 +18,9 @@
"text": "Detect classes declared without explicit sharing mode if DML methods are used. This forces the developer to take access restrictions into account before modifying objects."
},
"helpUri": "https://pmd.github.io/pmd/pmd_rules_apex_security.html#apexsharingviolations",
"help": {
"text": "Detect classes declared without explicit sharing mode if DML methods are used. This forces the developer to take access restrictions into account before modifying objects."
},
"properties": {
"ruleset": "Security",
"priority": 3,
@ -35,6 +38,9 @@
"text": "This rule validates that: ApexDoc comments are present for classes, methods, and properties that are public or global, excluding overrides and test classes (as well as the contents of test classes)."
},
"helpUri": "https://pmd.github.io/pmd/pmd_rules_apex_documentation.html#apexdoc",
"help": {
"text": "This rule validates that: ApexDoc comments are present for classes, methods, and properties that are public or global, excluding overrides and test classes (as well as the contents of test classes)."
},
"properties": {
"ruleset": "Documentation",
"priority": 3,

View File

@ -180,6 +180,7 @@ public class SarifLogBuilder {
.shortDescription(new MultiformatMessage(rv.getDescription()))
.fullDescription(new MultiformatMessage(rv.getRule().getDescription()))
.helpUri(rv.getRule().getExternalInfoUrl())
.help(new MultiformatMessage(rv.getRule().getDescription()))
.properties(getRuleProperties(rv))
.build();
}

View File

@ -17,6 +17,9 @@
"fullDescription": {
"text": "desc"
},
"help": {
"text": "desc"
},
"properties": {
"ruleset": "RuleSet",
"priority": 1,
@ -33,6 +36,9 @@
"fullDescription": {
"text": "desc"
},
"help": {
"text": "desc"
},
"properties": {
"ruleset": "RuleSet",
"priority": 5,

View File

@ -17,6 +17,9 @@
"fullDescription": {
"text": "desc"
},
"help": {
"text": "desc"
},
"properties": {
"ruleset": "RuleSet",
"priority": 5,