Exposing the help field in the SARIF report
This commit is contained in:
@ -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,
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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,
|
||||
|
@ -17,6 +17,9 @@
|
||||
"fullDescription": {
|
||||
"text": "desc"
|
||||
},
|
||||
"help": {
|
||||
"text": "desc"
|
||||
},
|
||||
"properties": {
|
||||
"ruleset": "RuleSet",
|
||||
"priority": 5,
|
||||
|
Reference in New Issue
Block a user