Open agh92 opened 9 years ago
We are absolutely need the complexity metric in our QA model. We have tested this new feature, please approve the Pull Request.
:+1:
:+1: Confirmed changes work as expected. Cyclomatic complexity is an extremely valuable metric for us - would be nice to see this merged
ok, thanks for the feedback, I will merge it. Sorry for the delay by the way.
:+1:
This is working fine with me. Why aren't we merging this.
lizard.xml is generated but not shown in dashboard
Hi @amin234 , Even I'm facing the same problem. I've configured objective c sonar project and it's able to generate lizard.xml in sonar-reports folder and I've given the same path in sonar console under complexity of objective c but still complexity widget not appearing. Pls let me know if you got any solution for this.
Thanks
@akshaysyaduvanshi How did you resolve the below error? I have the same issue now.
Getting this error I created xml with lizard --xml
Processing complexity report
ERROR - Error processing file named /Applications/GoAgent.app/pipelines/ios-sonar/ios/Source/sonar-reports/lizard-report.xml
com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 3-byte UTF-8 sequence.
at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:687) ~[na:1.7.0_60]
at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:408) ~[na:1.7.0_60]
at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1753) ~[na:1.7.0_60]
at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanLiteral(XMLEntityScanner.java:1074) ~[na:1.7.0_60]
at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanAttributeValue(XMLScanner.java:835) ~[na:1.7.0_60]
Hello everyone,
Here is a Pull Request to add Lizard support (https://github.com/terryyin/lizard) to the plugin. "Lizard is a simple code complexity analyzer" it can create an xml report, which contains die cyclomatic complexity for a file and their functions.
Details: