python-lizard
Port variant v12
Summary Cyclomatic Complexity Analyzer (3.12)
Package version 1.17.27
Homepage http://www.lizard.ws
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v13
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 25 APR 2025, 17:21:00 UTC
Port created 08 JAN 2023, 04:18:24 UTC
Subpackage Descriptions
single |Web Site| Lizard ================= | Lizard is an extensible Cyclomatic Complexity Analyzer for many programming languages including C/C++ (doesn't require all the header files or Java imports). It also does copy-paste detection (code clone detection/code duplicate detection) and many other forms of static code analysis. A list of supported languages: - C/C++ (works with C++14) - Java - C# (C Sharp) - JavaScript (With ES6 and JSX) - TypeScript (With TSX) - VueJS - Objective-C - Swift - Python - Ruby - TTCN-3 - PHP - Scala - GDScript - Golang - Lua - Rust - Fortran - Kotlin - Solidity - Erlang - Zig - Perl By default lizard will search for any source code that it knows and mix all the results together. This might not be what you want. You can use the "-l" option to select language(s). It counts - the nloc (lines of code without comments), - CCN (cyclomatic complexity number), - token count of functions. - parameter count of functions. You can set limitation for CCN (-C), the number of parameters (-a). Functions that exceed these limitations will generate warnings. The exit code of lizard will be none-Zero if there are warnings. This tool actually calculates how complex the code 'looks' rather than how complex the code really 'is'. People will need this tool because it's often very hard to get all the included folders and files right when they are complicated. But we don't really need that kind of accuracy for cyclomatic complexity. It requires python3.8 or above (early versions are not verified). Installation ------------ lizard.py can be used as a stand alone Python script, most functionalities are there. You can always use it without any installation. To acquire all the functionalities of lizard, you will need a proper install. :: python lizard.py If you want a proper install: :: [sudo] pip install lizard Or if you've got the source: :: [sudo] python setup.py install --prefix=/path/to/installation/directory/ Usage ----- :: lizard [options] [PATH or FILE] [PATH] ... Run for the code under current folder (recursively): :: lizard Exclude anything in the tests folder:
Configuration Switches (platform-specific settings discarded)
PY312 ON Build using Python 3.12 PY313 OFF Build using Python 3.13
Package Dependencies by Type
Build (only) python312:dev:std
python-pip:single:v12
autoselect-python:single:std
Build and Runtime python312:primary:std
Runtime (only) python-Pygments:single:v12
python-pathspec:single:v12
Download groups
main mirror://PYPIWHL/78/a5/31e9f82f1747301cf8b46fde1f0a37dae16f8ab285b18193f3a407810cf7
Distribution File Information
bed0ff8119d4acd9440b56810d210fe1403fd51e4f5a7a86fe3a7c6306b1435f 77795 python-src/lizard-1.17.27-py2.py3-none-any.whl
Ports that require python-lizard:v12
python-PyDriller:v12 Framework for MSR (3.12)