Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-55051

Support for D-Scanner format

XMLWordPrintable

    • analysis-model 5.2.0, warnings-ng 5.3.0

      D-Scanner is a tool for analyzing D source code (https://github.com/dlang-community/D-Scanner).

      It generates a dscanner-report.json file with following format 

      {
      "issues": [

      { "key": "dscanner.suspicious.local_imports", "fileName": ".\\vibe-d\\core\\vibe\\core\\concurrency.d", "line": 49, "column": 9, "message": "Local imports should specify the symbols being imported to avoid hiding local symbols." }

      ,

      { "key": "dscanner.suspicious.unmodified", "fileName": ".\\vibe-d\\core\\vibe\\core\\concurrency.d", "line": 69, "column": 9, "message": "Variable itm is never modified and could have been declared const or immutable." }

      ],
      "interfaceCount": 130,
      "classCount": 269,
      "functionCount": 3975,
      "templateCount": 157,
      "structCount": 411,
      "statementCount": 25621,
      "lineOfCodeCount": 34700,
      "undocumentedPublicSymbols": 0
      }

       

      To generate the json you execute d-scanner with following command:

      dscanner --report . > dscanner-report.json

      I also attached a complete dscanner-report.json for package vibe.d.

      Could you check whether you can add support for D-Scanner json files?

       

       

            andre2007 Andre Pany
            andre2007 Andre Pany
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: