[JIRA] (JENKINS-55051) Support for D-Scanner format

19 views
Skip to first unread message

andre.pany@sap.com (JIRA)

unread,
Dec 6, 2018, 7:01:02 AM12/6/18
to jenkinsc...@googlegroups.com
Andre Pany created an issue
 
Jenkins / Improvement JENKINS-55051
Support for D-Scanner format
Issue Type: Improvement Improvement
Assignee: Ulli Hafner
Attachments: dscanner-report.zip
Components: warnings-plugin
Created: 2018-12-06 12:00
Priority: Minor Minor
Reporter: Andre Pany

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?

 

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

andre.pany@sap.com (JIRA)

unread,
Dec 6, 2018, 8:34:02 AM12/6/18
to jenkinsc...@googlegroups.com
Andre Pany updated an issue
Change By: Andre Pany
Component/s: warnings-ng-plugin
Component/s: warnings-plugin

ullrich.hafner@gmail.com (JIRA)

unread,
Dec 6, 2018, 9:57:06 AM12/6/18
to jenkinsc...@googlegroups.com
Ulli Hafner assigned an issue to Unassigned
 

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

Jenkins / New Feature JENKINS-55051
Support for D-Scanner format
Change By: Ulli Hafner
Issue Type: Improvement New Feature
Component/s: analysis-model
Labels: PR-appreciated
Assignee: Ulli Hafner

ullrich.hafner@gmail.com (JIRA)

unread,
Dec 6, 2018, 10:00:05 AM12/6/18
to jenkinsc...@googlegroups.com
Ulli Hafner updated an issue
Change By: Ulli Hafner
Labels: PR help - appreciated wanted newbie-friendly

ullrich.hafner@gmail.com (JIRA)

unread,
Mar 20, 2019, 8:20:04 AM3/20/19
to jenkinsc...@googlegroups.com
Ulli Hafner closed an issue as Postponed
Change By: Ulli Hafner
Status: Open Closed
Resolution: Postponed

ullrich.hafner@gmail.com (JIRA)

unread,
Jul 2, 2019, 4:27:02 AM7/2/19
to jenkinsc...@googlegroups.com
Ulli Hafner reopened an issue
Change By: Ulli Hafner
Resolution: Postponed
Status: Closed Reopened

ullrich.hafner@gmail.com (JIRA)

unread,
Jul 2, 2019, 4:28:01 AM7/2/19
to jenkinsc...@googlegroups.com
Ulli Hafner assigned an issue to Andre Pany
Change By: Ulli Hafner
Assignee: Andre Pany

ullrich.hafner@gmail.com (JIRA)

unread,
Jul 2, 2019, 4:31:02 AM7/2/19
to jenkinsc...@googlegroups.com
Ulli Hafner commented on New Feature JENKINS-55051
 
Re: Support for D-Scanner format

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](https://github.com/jenkinsci/warnings-ng-plugin/blob/master/src/main/java/io/jenkins/plugins/analysis/warnings/Detekt.java)

ullrich.hafner@gmail.com (JIRA)

unread,
Jul 2, 2019, 4:31:02 AM7/2/19
to jenkinsc...@googlegroups.com
Ulli Hafner updated an issue
Change By: Ulli Hafner
Released As: analysis-model 5.2.0

ullrich.hafner@gmail.com (JIRA)

unread,
Jul 2, 2019, 4:32:02 AM7/2/19
to jenkinsc...@googlegroups.com
Ulli Hafner edited a comment on New Feature JENKINS-55051
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|https://github.com/jenkinsci/warnings-ng-plugin/blob/master/src/main/java/io/jenkins/plugins/analysis/warnings/Detekt.java] .

ullrich.hafner@gmail.com (JIRA)

unread,
Jul 2, 2019, 4:32:02 AM7/2/19
to jenkinsc...@googlegroups.com
Ulli Hafner edited a comment on New Feature JENKINS-55051
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 ]( | https://github.com/jenkinsci/warnings-ng-plugin/blob/master/src/main/java/io/jenkins/plugins/analysis/warnings/Detekt.java ) ]

andre.pany@sap.com (JIRA)

unread,
Jul 2, 2019, 8:07:03 AM7/2/19
to jenkinsc...@googlegroups.com

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.

ullrich.hafner@gmail.com (JIRA)

unread,
Jul 2, 2019, 8:18:03 AM7/2/19
to jenkinsc...@googlegroups.com

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

andre.pany@sap.com (JIRA)

unread,
Jul 5, 2019, 12:09:02 AM7/5/19
to jenkinsc...@googlegroups.com

andre.pany@sap.com (JIRA)

unread,
Jul 5, 2019, 12:10:02 AM7/5/19
to jenkinsc...@googlegroups.com
Andre Pany resolved as Fixed
Change By: Andre Pany
Status: Reopened Resolved
Resolution: Fixed

ullrich.hafner@gmail.com (JIRA)

unread,
Jul 5, 2019, 4:06:03 AM7/5/19
to jenkinsc...@googlegroups.com
Ulli Hafner updated an issue
Change By: Ulli Hafner
Released As: analysis-model 5.2.0 , warnings-ng 5.3.0
Reply all
Reply to author
Forward
0 new messages