Well, you mean writing another parser that replaces the existing parser from 
the Findbugs library rather than fixing it? I don't think that this is simpler 
(not invented here syndrome), but if you are interested to provide a pull 
request please go ahead… 

I would suggest that the best thing is to improve the parser of the findbugs 
library so we would automatically keep up with changes in the findbugs file 
format without changing the Jenkins code…   

Ulli

Am 14.06.2013 um 15:42 schrieb Martin <rosena...@gmail.com>:

> True ... but Ulli, in this specific case, wouldn't it simply be possible to 
> parse the findbugs_report.xml with another parser and take the information 
> from there ?
> 
> As far as I can see the block of XML holds the needed (correct) information:
> 
>   <BugInstance type="SEB_LOG_NOT_SBXLOGGER" priority="1" 
> abbrev="SEBLOGNOTSBXLOGGER" category="CORRECTNESS" 
> instanceHash="c0496de5d4508f015114f116fc67be0e" instanceOccurrenceNum="0" 
> instanceOccurrenceMax="0" rank="2">
> 
> Apologies if I'm misunderstanding.
> 
> Best,
> 
> Martin
> 
> 
> Den fredag den 14. juni 2013 15.33.47 UTC+2 skrev Ullrich Hafner:
> Maybe it would be good to create a bug report for FindBugs so that they will 
> hopefully fix that problem, soon…
> 
> Ulli
> 
> Am 14.06.2013 um 13:45 schrieb Martin <rose...@gmail.com>:
> 
>> Ulli, I believe you are right. What obviously puzzled me was that it goes 
>> into the XML file with the correct rank and that it goes into the Jenkins 
>> Findbugs report with always low rank.
>> 
>> I'll patiently wait for the library to support entries from custom rules. 
>> 
>> Thanks again,
>> 
>> Martin
>> 
>> Den fredag den 14. juni 2013 13.30.05 UTC+2 skrev Ullrich Hafner:
>> Hi Martin, this looks like the same problem as 
>> https://github.com/jenkinsci/findbugs-plugin/pull/3 
>> 
>> I'm using the findbugs library to read the XML file. The library seems to 
>> ignore the values from the XML file in custom rules. 
>> 
>> Ulli 
>> 
>> PS: please use the mailing lists for such question so other users can 
>> participate… 
>> 
>> Am 13.06.2013 um 20:38 schrieb rose...@gmail.com: 
>> 
>> > Hi Ulli! 
>> > 
>> > First of all, thanks for the brilliant plugins you've done. 
>> > 
>> > Unfortunately, and apologies if it's my misunderstanding, it seems like 
>> > the FindBugs Jenkins plugin is not able to handle ranking on custom 
>> > FindBugs plugins (custom rules). At least all of them results in a ranking 
>> > = LOW, no matter what's getting into my XML report. 
>> > 
>> > Specifically, as an example, custom rules that resides in a separate .jar 
>> > with a separate findbugs.xml, messages.xml and bugrank.txt results 
>> > correctly in the following in the findbugs_report.xml: 
>> > 
>> > 
>> > <BugInstance type="SEB_LOG_NOT_SBXLOGGER" priority="1" 
>> > abbrev="SEBLOGNOTSBXLOGGER" category="CORRECTNESS" 
>> > instanceHash="6194456043c6ba846e2b79e3d7b3e94" instanceOccurrenceNum="1" 
>> > instanceOccurrenceMax="2" rank="2"> 
>> > 
>> > Never the less the Jenkins plugin states it's rank = LOW, where as I would 
>> > have expected it could become HIGH. 
>> > 
>> > I have tried to mingle with the findbugs.xml and bugrank.txt inside 
>> > library-2.0.1.jar without luck. 
>> > 
>> > Any help on this would be greatly appreciated :-) 
>> > 
>> > Best regards, 
>> > 
>> > Martin, Copenhagen 
>> > 
>> > _____________________________________ 
>> > Sent from http://jenkins-ci.361315.n4.nabble.com 
>> > 
>> 
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to jenkinsci-use...@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to