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

Add CSV output transform #182

Closed hallta closed 7 years ago

hallta commented 7 years ago

Pretty much what it says:

Using "--csv" at the command line (I wasn't able to find a logical one-char short switch), will transform the output into CSV.

The output will be identical in structure to the default output, but with some additions:

terryyin commented 7 years ago

Thanks for the pull request. @hallta do you want add a few tests to the new feature?

hallta commented 7 years ago

Definitely. I didn't see any for the xml output so wasn't sure how best to write them. Can you point me to an example I can model the test after?

hallta commented 7 years ago

Nevermind :) I've figured out how to test this, and added some new tests.

terryyin commented 7 years ago

yeah, the xml output wasn't covered by test, unfortunately. Thanks for having a good start:-)