2021-01-19 11:59:14 +01:00
{
2024-09-09 10:10:46 -07:00
"$schema" : "https://json.schemastore.org/sarif-2.1.0.json" ,
2021-01-19 11:59:14 +01:00
"version" : "2.1.0" ,
"runs" : [
{
"tool" : {
"driver" : {
"name" : "PMD" ,
"version" : "<pmd-version>" ,
2023-03-30 15:28:56 +02:00
"informationUri" : "https://docs.pmd-code.org/latest/" ,
2021-01-19 11:59:14 +01:00
"rules" : [
{
"id" : "ApexSharingViolations" ,
"shortDescription" : {
"text" : "Apex classes should declare a sharing model if DML or SOQL/SOSL is used"
} ,
2021-06-01 12:13:35 +00:00
"fullDescription" : {
"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."
} ,
2023-03-30 15:28:56 +02:00
"helpUri" : "https://docs.pmd-code.org/latest/pmd_rules_apex_security.html#apexsharingviolations" ,
2021-06-03 15:30:48 +00:00
"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."
} ,
2021-01-19 11:59:14 +01:00
"properties" : {
"ruleset" : "Security" ,
2021-06-01 12:13:35 +00:00
"priority" : 3 ,
"tags" : [
"Security"
]
2021-01-19 11:59:14 +01:00
}
} ,
{
"id" : "ApexDoc" ,
"shortDescription" : {
"text" : "Missing ApexDoc comment"
} ,
2021-06-01 12:13:35 +00:00
"fullDescription" : {
"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)."
} ,
2023-03-30 15:28:56 +02:00
"helpUri" : "https://docs.pmd-code.org/latest/pmd_rules_apex_documentation.html#apexdoc" ,
2021-06-03 15:30:48 +00:00
"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)."
} ,
2021-01-19 11:59:14 +01:00
"properties" : {
"ruleset" : "Documentation" ,
2021-06-01 12:13:35 +00:00
"priority" : 3 ,
"tags" : [
"Documentation"
]
2021-01-19 11:59:14 +01:00
}
}
]
}
} ,
"results" : [
{
"ruleId" : "ApexSharingViolations" ,
"ruleIndex" : 0 ,
"message" : {
"text" : "Apex classes should declare a sharing model if DML or SOQL/SOSL is used"
} ,
"locations" : [
{
"physicalLocation" : {
"artifactLocation" : {
"uri" : "/Users/user/pmd/unhappy-soup/force-app/main/default/classes/ApexSOQLInjection.cls"
} ,
"region" : {
"startLine" : 1 ,
"startColumn" : 14 ,
"endLine" : 1 ,
"endColumn" : 30
}
}
} ,
{
"physicalLocation" : {
"artifactLocation" : {
"uri" : "/Users/user/pmd/unhappy-soup/force-app/main/default/classes/ApexSharingViolations.cls"
} ,
"region" : {
"startLine" : 1 ,
"startColumn" : 14 ,
"endLine" : 1 ,
"endColumn" : 34
}
}
}
]
} ,
{
"ruleId" : "ApexDoc" ,
"ruleIndex" : 1 ,
"message" : {
"text" : "Missing ApexDoc comment"
} ,
"locations" : [
{
"physicalLocation" : {
"artifactLocation" : {
"uri" : "/Users/user/pmd/unhappy-soup/force-app/main/default/classes/ApexSOQLInjection.cls"
} ,
"region" : {
"startLine" : 1 ,
"startColumn" : 14 ,
"endLine" : 6 ,
"endColumn" : 1
}
}
} ,
{
"physicalLocation" : {
"artifactLocation" : {
"uri" : "/Users/user/pmd/unhappy-soup/force-app/main/default/classes/ApexSOQLInjection.cls"
} ,
"region" : {
"startLine" : 3 ,
"startColumn" : 17 ,
"endLine" : 5 ,
"endColumn" : 2
}
}
} ,
{
"physicalLocation" : {
"artifactLocation" : {
"uri" : "/Users/user/pmd/unhappy-soup/force-app/main/default/classes/ApexSharingViolations.cls"
} ,
"region" : {
"startLine" : 1 ,
"startColumn" : 14 ,
"endLine" : 6 ,
"endColumn" : 1
}
}
} ,
{
"physicalLocation" : {
"artifactLocation" : {
"uri" : "/Users/user/pmd/unhappy-soup/force-app/main/default/classes/ApexSharingViolations.cls"
} ,
"region" : {
"startLine" : 3 ,
"startColumn" : 14 ,
"endLine" : 5 ,
"endColumn" : 2
}
}
}
]
}
]
}
]
2023-03-30 15:28:56 +02:00
}