terryyin / lizard

A simple code complexity analyser without caring about the C/C++ header files or Java imports, supports most of the popular languages.
Other
1.85k stars 250 forks source link

the result between xml format result and no format output is different #232

Closed gucj closed 6 years ago

gucj commented 6 years ago

at the same git repository dir,the result of different format is different. <average label="NCSS" value="15.577027027027027"/> != Avg.NLOC 12.1 run lizard -X >>result.xml the summary result is: `

    <average label="CCN" value="21.25"/>

    <average label="Functions" value="6.851851851851852"/>

    <sum label="NCSS" value="11527"/>

    <sum label="CCN" value="2295"/>

    <sum label="Functions" value="740"/>

    <average label="NCSS" value="15.577027027027027"/>

    <average label="CCN" value="3.1013513513513513"/>

`

run lizard >>result.txt the summary result is:

`

Total nloc Avg.NLOC AvgCCN Avg.token Fun Cnt Warning cnt Fun Rt nloc Rt

 11527      12.1     3.1       79.6      740           17      0.02    0.22

`

terryyin commented 6 years ago

Hi Mr.灰太狼,

Thanks! I found the problem. In the XML the average include source code that is not in any function. I will change it to the same as text output.

Terry

On 16 Jul 2018, at 5:24 PM, 灰太狼 notifications@github.com wrote:

at the same git repository dir,the result of different format is different. != Avg.NLOC 12.1 run lizard -X >>result.xml the summary result is:

run lizard >>result.txt the summary result is: `========================================================================================== Total nloc Avg.NLOC AvgCCN Avg.token Fun Cnt Warning cnt Fun Rt nloc Rt

11527      12.1             3.1        79.6             740           17                  0.02      0.22`

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/terryyin/lizard/issues/232, or mute the thread https://github.com/notifications/unsubscribe-auth/AAwJYotGsh4y9lokN1qzBtQV2B4IpBKYks5uHFu4gaJpZM4VQzsJ.

terryyin commented 6 years ago

OK. Fixed and a new release is created.