Coder Social home page Coder Social logo

Comments (4)

terryyin avatar terryyin commented on July 18, 2024

You can now (with the trunk) sort the result by:

lizard -scyclomatic_complexity

To sort by CCN in reverse order. Or

lizard -snloc

To sort by bloc in reverse order.

Let me know your experience with this feature:-)

I will include this in the next release for pip install in about two weeks.

On 16 Mar, 2014, at 5:06 am, dupgit [email protected] wrote:

One may want to know which function has the highest CCN score or the biggest nloc.


Reply to this email directly or view it on GitHub.

from lizard.

dupgit avatar dupgit commented on July 18, 2024

I tested your code and it works perfectly for the functions that appears in the warnings.

Do you think that it is possible to sort the whole ouput (even those with no warnings) or can we modify the level at which a function is in the warning section ?

from lizard.

terryyin avatar terryyin commented on July 18, 2024

The whole output is in real time, so it's hard to sort it. But I can make the output within each file sorted.

You can change the warning threshold by
lizard -C10
To change the complexity limitation to 10. I can add function to change threshold for nloc and others as well.

Sent from my iPad

On 18 Mar, 2014, at 3:41 am, dupgit [email protected] wrote:

I tested your code and it works perfectly for the functions that appears in the warnings.

Do you think that it is possible to sort the whole ouput (even those with no warnings) or can we modify the level at which a function is in the warning section ?


Reply to this email directly or view it on GitHub.

from lizard.

dupgit avatar dupgit commented on July 18, 2024

I'll be pleased to see such an option (sorting the nloc or param) but the -C option is what I needed with the cyclomatic sorting (sorry I didn't saw it in the help message).
Thanks !

from lizard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.