• 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?

       

       

          [JENKINS-55051] Support for D-Scanner format

          Ulli Hafner added a comment -

          Typically, new parsers are added by volunteers. Interesting in providing one on your own?

          Ulli Hafner added a comment - Typically, new parsers are added by volunteers. Interesting in providing one on your own?

          Ulli Hafner added a comment - - edited

          I released analysis-model 5.2.0. You can reference it now in the warnings-ng plugin. You still need to provide a model class in the style of Detekt.

          Ulli Hafner added a comment - - edited I released analysis-model 5.2.0. You can reference it now in the warnings-ng plugin. You still need to provide a model class in the style of Detekt .

          Andre Pany added a comment -

          I currently get POM errors, I think because 5.2.0 isn't available here: https://mvnrepository.com/artifact/io.jenkins.plugins/analysis-model-api

          I will create the next PR when it is available in maven repository.

          Andre Pany added a comment - I currently get POM errors, I think because 5.2.0 isn't available here:  https://mvnrepository.com/artifact/io.jenkins.plugins/analysis-model-api I will create the next PR when it is available in maven repository.

          Ulli Hafner added a comment -

          Sorry, I forgot to release the api-plugin as well Should be available now, see commit #e8cf0a6a8

          Ulli Hafner added a comment - Sorry, I forgot to release the api-plugin as well Should be available now, see commit #e8cf0a6a8

          Andre Pany added a comment -

          Solved. Thank you

          Andre Pany added a comment - Solved. Thank you

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

              Created:
              Updated:
              Resolved: