"Fossies" - the Fresh Open Source Software Archive

Member "pmd-src-6.47.0/docs/report-examples/pmd-report.sarif.json" (25 Jun 2022, 5448 Bytes) of package /linux/misc/pmd-src-6.47.0.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) JSON source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 {
    2   "$schema": "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json",
    3   "version": "2.1.0",
    4   "runs": [
    5     {
    6       "tool": {
    7         "driver": {
    8           "name": "PMD",
    9           "version": "<pmd-version>",
   10           "informationUri": "https://pmd.github.io/pmd/",
   11           "rules": [
   12             {
   13               "id": "ApexSharingViolations",
   14               "shortDescription": {
   15                 "text": "Apex classes should declare a sharing model if DML or SOQL/SOSL is used"
   16               },
   17               "fullDescription": {
   18                 "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."
   19               },
   20               "helpUri": "https://pmd.github.io/pmd/pmd_rules_apex_security.html#apexsharingviolations",
   21               "help": {
   22                 "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."
   23               },
   24               "properties": {
   25                 "ruleset": "Security",
   26                 "priority": 3,
   27                 "tags":[
   28                   "Security"
   29                 ]
   30               }
   31             },
   32             {
   33               "id": "ApexDoc",
   34               "shortDescription": {
   35                 "text": "Missing ApexDoc comment"
   36               },
   37               "fullDescription": {
   38                 "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)."
   39               },
   40               "helpUri": "https://pmd.github.io/pmd/pmd_rules_apex_documentation.html#apexdoc",
   41               "help": {
   42                 "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)."
   43               },
   44               "properties": {
   45                 "ruleset": "Documentation",
   46                 "priority": 3,
   47                 "tags": [
   48                   "Documentation"
   49                 ]
   50               }
   51             }
   52           ]
   53         }
   54       },
   55       "results": [
   56         {
   57           "ruleId": "ApexSharingViolations",
   58           "ruleIndex": 0,
   59           "message": {
   60             "text": "Apex classes should declare a sharing model if DML or SOQL/SOSL is used"
   61           },
   62           "locations": [
   63             {
   64               "physicalLocation": {
   65                 "artifactLocation": {
   66                   "uri": "/Users/user/pmd/unhappy-soup/force-app/main/default/classes/ApexSOQLInjection.cls"
   67                 },
   68                 "region": {
   69                   "startLine": 1,
   70                   "startColumn": 14,
   71                   "endLine": 1,
   72                   "endColumn": 30
   73                 }
   74               }
   75             },
   76             {
   77               "physicalLocation": {
   78                 "artifactLocation": {
   79                   "uri": "/Users/user/pmd/unhappy-soup/force-app/main/default/classes/ApexSharingViolations.cls"
   80                 },
   81                 "region": {
   82                   "startLine": 1,
   83                   "startColumn": 14,
   84                   "endLine": 1,
   85                   "endColumn": 34
   86                 }
   87               }
   88             }
   89           ]
   90         },
   91         {
   92           "ruleId": "ApexDoc",
   93           "ruleIndex": 1,
   94           "message": {
   95             "text": "Missing ApexDoc comment"
   96           },
   97           "locations": [
   98             {
   99               "physicalLocation": {
  100                 "artifactLocation": {
  101                   "uri": "/Users/user/pmd/unhappy-soup/force-app/main/default/classes/ApexSOQLInjection.cls"
  102                 },
  103                 "region": {
  104                   "startLine": 1,
  105                   "startColumn": 14,
  106                   "endLine": 6,
  107                   "endColumn": 1
  108                 }
  109               }
  110             },
  111             {
  112               "physicalLocation": {
  113                 "artifactLocation": {
  114                   "uri": "/Users/user/pmd/unhappy-soup/force-app/main/default/classes/ApexSOQLInjection.cls"
  115                 },
  116                 "region": {
  117                   "startLine": 3,
  118                   "startColumn": 17,
  119                   "endLine": 5,
  120                   "endColumn": 2
  121                 }
  122               }
  123             },
  124             {
  125               "physicalLocation": {
  126                 "artifactLocation": {
  127                   "uri": "/Users/user/pmd/unhappy-soup/force-app/main/default/classes/ApexSharingViolations.cls"
  128                 },
  129                 "region": {
  130                   "startLine": 1,
  131                   "startColumn": 14,
  132                   "endLine": 6,
  133                   "endColumn": 1
  134                 }
  135               }
  136             },
  137             {
  138               "physicalLocation": {
  139                 "artifactLocation": {
  140                   "uri": "/Users/user/pmd/unhappy-soup/force-app/main/default/classes/ApexSharingViolations.cls"
  141                 },
  142                 "region": {
  143                   "startLine": 3,
  144                   "startColumn": 14,
  145                   "endLine": 5,
  146                   "endColumn": 2
  147                 }
  148               }
  149             }
  150           ]
  151         }
  152       ]
  153     }
  154   ]
  155 }