lizard
lizard copied to clipboard
[--sort]How to use --sort?
I use it like below: python lizard.py sourcedir --CCN 10 --csv --sort cyclomatic_complexity
However, it is not work.
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.
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.
I expect the csv that lizard outputs can sort by cyclomatic_complexity.
I think the sort command should sort all the output, not only warnings.