How to Install and Uninstall pmccabe Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: September 21,2024

1. Install "pmccabe" package

Please follow the step by step instructions below to install pmccabe on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install pmccabe

2. Uninstall "pmccabe" package

Please follow the guidelines below to uninstall pmccabe on Ubuntu 16.04 LTS (Xenial Xerus):

$ sudo apt remove pmccabe $ sudo apt autoclean && sudo apt autoremove

3. Information about the pmccabe package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: pmccabe
Priority: optional
Section: universe/devel
Installed-Size: 120
Maintainer: Ubuntu Developers
Original-Maintainer: Paul Bame
Architecture: amd64
Version: 2.6
Depends: libc6 (>= 2.4)
Filename: pool/universe/p/pmccabe/pmccabe_2.6_amd64.deb
Size: 24970
MD5sum: 46815cdd9ea67cafa62f6dbde8f50fbc
SHA1: 12a7d08ef67f15cde410c47a9bfd7d19f1ee43b3
SHA256: 32368b1a6c7b5aabdf0ad3be925192834ec9cec0dc36130ac4d26b901d994fda
Description-en: McCabe-style function complexity and line counting for C and C++
Pmccabe calculates McCabe-style cyclomatic complexity for C and C++
source code. Per-function complexity may be used for spotting likely
trouble spots and for estimating testing effort.
.
Pmccabe also includes a non-commented line counter compatible with anac,
'decomment' which only removes comments from source code; 'codechanges',
a program to calculate the amount of change which has occurred between
two source trees or files; and 'vifn', to invoke 'vi' given a function
name rather than a file name.
.
Pmccabe attempts to calculate the apparent complexity rather
than the complexity following the C++ and/or cpp preprocessors.
This causes Pmccabe to become confused with cpp constructs which
cause unmatched curly braces - most of which can profitably be
rewritten so they won't confuse prettyprinters anyway. Pmccabe prints
C-compiler-style error messages when the parser gets confused so they
may be browsed with standard tools.
.
Two types of cyclomatic complexity are generated - one type counts
each switch() statement as regardless of the number of cases included and
the other more traditional measure counts each case within the switch().
Pmccabe also calculates the starting line for each function, the number of
lines consumed by the function, and the number of C statements within the
function.
Description-md5: dcdb4eedc724c36372beec6f504e3b37
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu