How is checksum calculated for issue

66 views
Skip to first unread message

anand sudhan

unread,
Jan 14, 2016, 1:50:58 PM1/14/16
to SonarQube
Howdy,

There is a 'checksum'  column in the issue table in sonarqube database. 

How is it calculated for a method in java/javscript? Is it calculated from the signature of the method?

Thanks ! - Anand

Julien HENRY

unread,
Jan 14, 2016, 5:22:55 PM1/14/16
to SonarQube
Hi,

The checksum is the md5 of the source code at the line of the issue stripped from blank characters.

++

JUlien

anand sudhan

unread,
Jan 15, 2016, 5:22:58 PM1/15/16
to SonarQube
Thanks a lot Julien - that helped my solving my issue!

anand sudhan

unread,
Jan 19, 2016, 10:09:07 AM1/19/16
to SonarQube
Is there some way I can get access to checksum of an issue from the api ?
(issue reports plugin 's issue class doesn't seem to have an getChecksum() method. I am using Issue Reports Plugin version : - 1.2.1

Thanks - Anand

Julien HENRY

unread,
Jan 19, 2016, 10:23:54 AM1/19/16
to SonarQube
This field is part of the issue tracking algorithm and should not be considered as an API.

++

Julien
Reply all
Reply to author
Forward
0 new messages