GNU complexity computes a complexity measure of C source code.
For the most part, it is very similar to pmccabe results.
The difference is that code length adds linearly to the
score and logic nesting adds geometrically to the score.
Short functions tend to score lower than pmccabe and highly
nested functionality can score considerably higher.
The weighting for length and nesting levels can be adjusted.

Complexity also understands C syntax a little better,
but still overweights complex initializer expressions.

New in 1.5 - February 2016

* functions with a 1 line body are no longer reported as having a length of -1
* The CR character is now seen as a line ending character

complexity home:  http://www.gnu.org/software/complexity/
primary ftp:     ftp://ftp.gnu.org/gnu/complexity/
.tar.gz:         ftp://ftp.gnu.org/gnu/complexity/complexity-1.5.tar.gz
bug reports:     bkorb at the usual GNU domain
bug archive:     http://lists.gnu.org/mailman/listinfo/bug-gnu-utils/
maintainer:      Bruce Korb - bkorb at the usual GNU domain

--
If you have a working or partly working program that you'd like
to offer to the GNU project as a GNU package,
see https://www.gnu.org/help/evaluation.html.

Reply via email to