Comments (4)
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.
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.
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.
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)
- Jenkins Integration
- log4j vulnerability validation HOT 1
- Bug in lizard for Kotlin function with type hints
- Extension "Count Nested Control Structures" -ENS fails on most Rust code
- File (Classes) Complexity
- Javascript: handling of anonymous function is supported?
- Ruby and modified complexity HOT 2
- Negated exclude, or specific include?
- lizard gets confused by C++ thousands seperator HOT 1
- Lizard Skips Odd function Declarations
- Python Hinting causes issues with function parameter count
- Show CCN only, hide other fields
- lizard --sort cyclomatic_complexity --CCN 10 shows a file with CCN score of 1
- lizard -w --sort cyclomatic_complexity --CCN 10 -H includes all files instead of CCN >10
- Is it accurate to get the result data of fan-in fan-out HOT 1
- lizard gets confused by C++ thousands seperator in hex and binary numbers
- Lizard groups nearly 100 lines into one "function" in a Rust file HOT 4
- Installing lizard using pip doesn't work
- Process error with Objective-C block
- Lizard script doesn't working with jython in springboot applicatoion
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lizard.