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

[--sort]How to use --sort? #205

Open cyw3 opened 6 years ago

cyw3 commented 6 years ago

I use it like below: python lizard.py sourcedir --CCN 10 --csv --sort cyclomatic_complexity

However, it is not work.

image

terryyin commented 6 years ago

I’m not sure if —csv works with —sort. Will check. But need to onboard an airplane soon now. Talk to you when I’m on the ground again.

On 3 Dec 2017, at 10:40 AM, cyw3 notifications@github.com wrote:

I use it like below: python lizard.py sourcedir --CCN 10 --csv --sort cyclomatic_complexity

However, it is not work.

https://user-images.githubusercontent.com/11549103/33521763-5397fd12-d816-11e7-8d56-9cff0679ad16.png — 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/205, or mute the thread https://github.com/notifications/unsubscribe-auth/AAwJYql5Re5YjffoxQMZEqevM2zFdUcVks5s8goLgaJpZM4Qzj3j.

terryyin commented 6 years ago

The sort option only sort warnings in standard output. As the csv output includes everything, do you expect the output to be sorted within each file? That can be done easily. On 3 Dec 2017, at 1:26 PM, Terry Yin terry.yinzhe@gmail.com wrote:I’m not sure if —csv works with —sort. Will check. But need to onboard an airplane soon now. Talk to you when I’m on the ground again.On 3 Dec 2017, at 10:40 AM, cyw3 notifications@github.com wrote:I use it like below: python lizard.py sourcedir --CCN 10 --csv --sort cyclomatic_complexityHowever, it is not work.—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or mute the thread.

cyw3 commented 6 years ago

I expect the csv that lizard outputs can sort by cyclomatic_complexity.

dskeppstedt commented 6 years ago

I think the sort command should sort all the output, not only warnings.