Install cccc by entering the following commands in the terminal:
sudo apt update sudo apt install cccc
Description:
C and C++ Code Counter, a software metrics tool
CCCC analyses and reports measurements of source code in C, C++, and Java. The metrics supported include lines of code, McCabe's Cyclomatic Complexity, and measures of module fan-out/fan-in.
Homepage: http://cccc.sourceforge.net/
Version: 1:3.1.4-9
Section: universe/devel