Gendarme plugin is failing after reporting 2740 defects

89 views
Skip to first unread message

Harish S

unread,
Dec 7, 2012, 9:24:33 AM12/7/12
to gend...@googlegroups.com
Hello,
 
When  I run gendarme exe from command line I get the below error
 
Genderme Command:
C:\Users\Harish>"C:\Program Files (x86)\Gendarme\gendarme.exe" --config E:\FMRI\O2R\target\sonar\sonar.Gendarme --xml E:\FMRI\O2R\target\sonar\gendarme-report.xml --quiet --confidence normal+ --severity all E:\FMRI\O2R\bin\O2RWebApp.dll
 
Error message
 
An uncaught exception occured. Please fill a bug report at https://bugzilla.novell.com/
Stack trace: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
   at Gendarme.Framework.Symbols.ExtractFirst(MethodDefinition method)
   at Gendarme.Framework.Symbols.ExtractFirst(TypeDefinition type)
   at Gendarme.Framework.Symbols.GetSource(Defect defect)
   at Gendarme.XmlResultWriter.CreateElement(Defect defect)
   at Gendarme.XmlResultWriter.CreateDefects()
   at Gendarme.ResultWriter.Report()
   at Gendarme.ConsoleRunner.Report()
   at Gendarme.ConsoleRunner.Execute(String[] args)
 
When I add a limit field to this command line argument it goes through till value 2740. I fould from genderme wizard that the command found 2757 defects/violations. Please suggest on how to get around this issue.
 
The below command works retuning me a report.xml with 2740 defects
 

"C:\Program Files\gendarme-2.10-bin\gendarme.exe" --config E:\FMRI\O2R\target\sonar\sonar.Gendarme --xml E:\FMRI\O2R\target\sonar\gendarme-report.xml --limit 2740 --confidence normal+ --severity all E:\FMRI\O2R\bin\O2RWebApp.dll

 

The below command is failing with  System.ArgumentOutOfRangeException

 

"C:\Program Files\gendarme-2.10-bin\gendarme.exe" --config E:\FMRI\O2R\target\sonar\sonar.Gendarme --xml E:\FMRI\O2R\target\sonar\gendarme-report.xml --limit 2745 --confidence normal+ --severity all E:\FMRI\O2R\bin\O2RWebApp.dll

 

Please let me know if anyone has faced this issue.

 

 

 

 

 

 

 

Ivan López

unread,
Mar 13, 2013, 5:32:14 PM3/13/13
to gend...@googlegroups.com
Chek if your application has interop references.
 
regards.
Reply all
Reply to author
Forward
0 new messages