You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Kiuwan can import results from other analyzers, so you can analyze with MS FxCop or HP Fortify and view all results in Kiuwan dashboards.

You need to run your analyzer by your own and then you have to convert the results to a XML file with this format:

<?xml version='1.0' encoding='UTF-8'?>
<kiuwan>
 <defects>
 <violation>
 <file line="600" name="src/com/optimyth/jkqa/cqm/CQMConfidenceEvaluator.java"><![CDATA[public class CQMConfidenceEvaluator extends BaseConfidenceEvaluator implements]]></file>
 <rule code="OPT.JAVA.CDCI.PJDCC"/>
 </violation>
 <violation>
 <file line="650" name="src/com/optimyth/jkqa/cqm/CQMConfidenceEvaluator.java" hashed="true">1c54de24397760c0fb37b8a1d4949f1050008d3a</file>
 <rule code="OPT.JAVA.CDCI.PJDCC"/>
 </violation>
 <violation>
 <file name="src/com/optimyth/jkqa/cqm/CQMConfidenceEvaluator.java"/>
 <rule code="OPT.JAVA.STR.ECOM"/>
 </violation>
 </defects>
</kiuwan>

 

You can find a tool that converts the output of Ms FxCop and HP Fortify on this Github repository. Rule codes specified in XML must be active in your quality model, so you have to import in Quality Model Management all rule definitions managed by your analyzer. Each rule definition is a XML that contains the rule documentation. You can use Kiuwan Rule Developer to build these files using a graphic interface.

 

Then you have to upload this Kiuwan format defects file to Kiuwan using Kiuwan local analyzer:

agent.cmd -s "c:\src" -n myapp -x "c:\myreports" ignore=rules

You can merge your defects with Kiuwan's or you can ignore Kiuwan analyzer results using the ignore parameter.

 

 
  • No labels