forked from pmd/pmd-github-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gracefully handle empty rule description
Fixes pmd#127
- Loading branch information
Showing
3 changed files
with
143 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json", | ||
"version": "2.1.0", | ||
"runs": [ | ||
{ | ||
"tool": { | ||
"driver": { | ||
"name": "PMD", | ||
"version": "6.49.0", | ||
"informationUri": "https://pmd.github.io/pmd/", | ||
"rules": [ | ||
{ | ||
"id": "AvoidProductionDebugLogs", | ||
"shortDescription": { | ||
"text": "Avoid leaving System.debug() statments in code as they negativly influence performance." | ||
}, | ||
"fullDescription": {}, | ||
"helpUri": "", | ||
"help": {}, | ||
"properties": { | ||
"ruleset": "My Default", | ||
"priority": 5, | ||
"tags": [ | ||
"My Default" | ||
] | ||
} | ||
}, | ||
{ | ||
"id": "DebugsShouldUseLoggingLevel", | ||
"shortDescription": { | ||
"text": "Calls to System.debug should specify a logging level." | ||
}, | ||
"fullDescription": { | ||
"text": "\nThe first parameter of System.debug, when using the signature with two parameters, is a LoggingLevel enum.\n\nHaving the Logging Level specified provides a cleaner log, and improves readability of it.\n " | ||
}, | ||
"helpUri": "https://pmd.github.io/pmd-6.49.0/pmd_rules_apex_bestpractices.html#debugsshoulduselogginglevel", | ||
"help": { | ||
"text": "\nThe first parameter of System.debug, when using the signature with two parameters, is a LoggingLevel enum.\n\nHaving the Logging Level specified provides a cleaner log, and improves readability of it.\n " | ||
}, | ||
"properties": { | ||
"ruleset": "Best Practices", | ||
"priority": 3, | ||
"tags": [ | ||
"Best Practices" | ||
] | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"results": [ | ||
{ | ||
"ruleId": "AvoidProductionDebugLogs", | ||
"ruleIndex": 0, | ||
"message": { | ||
"text": "Avoid leaving System.debug() statments in code as they negativly influence performance." | ||
}, | ||
"locations": [ | ||
{ | ||
"physicalLocation": { | ||
"artifactLocation": { | ||
"uri": "/home/andreas/PMD/source/pmd-it/pmd-github-action-issue-127/src/Test.cls" | ||
}, | ||
"region": { | ||
"startLine": 3, | ||
"startColumn": 12, | ||
"endLine": 3, | ||
"endColumn": 16 | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"ruleId": "DebugsShouldUseLoggingLevel", | ||
"ruleIndex": 1, | ||
"message": { | ||
"text": "Calls to System.debug should specify a logging level." | ||
}, | ||
"locations": [ | ||
{ | ||
"physicalLocation": { | ||
"artifactLocation": { | ||
"uri": "/home/andreas/PMD/source/pmd-it/pmd-github-action-issue-127/src/Test.cls" | ||
}, | ||
"region": { | ||
"startLine": 3, | ||
"startColumn": 12, | ||
"endLine": 3, | ||
"endColumn": 16 | ||
} | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"invocations": [ | ||
{ | ||
"executionSuccessful": true, | ||
"toolConfigurationNotifications": [], | ||
"toolExecutionNotifications": [] | ||
} | ||
] | ||
} | ||
] | ||
} |