octo-technology / sonar-objective-c

Sonar Plugin for Objective C
517 stars 206 forks source link

Lizard integration #90

Open agh92 opened 9 years ago

agh92 commented 9 years ago

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:

tbores commented 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.

orangesignal commented 9 years ago

:+1:

pmwheatley commented 9 years ago

:+1: Confirmed changes work as expected. Cyclomatic complexity is an extremely valuable metric for us - would be nice to see this merged

cyrilpicat commented 9 years ago

ok, thanks for the feedback, I will merge it. Sorry for the delay by the way.

cyupa commented 9 years ago

:+1:

akshaysyaduvanshi commented 8 years ago

This is working fine with me. Why aren't we merging this.

amin234 commented 8 years ago

lizard.xml is generated but not shown in dashboard

niitMobileLab commented 8 years ago

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

yramya20 commented 7 years ago

@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]