lizard icon indicating copy to clipboard operation
lizard copied to clipboard

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

Open cyw3 opened this issue 7 years ago • 4 comments

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

However, it is not work.

image

cyw3 avatar Dec 03 '17 02:12 cyw3

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 [email protected] 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 avatar Dec 03 '17 05:12 terryyin

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 [email protected] 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 [email protected] 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.

terryyin avatar Dec 03 '17 14:12 terryyin

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

cyw3 avatar Dec 04 '17 12:12 cyw3

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

dskeppstedt avatar Feb 22 '18 10:02 dskeppstedt