Can you recommend free tools for calcualting cyclomatic complexity. Looking for all languages.
One tool/language per answer please.
Can you recommend free tools for calcualting cyclomatic complexity. Looking for all languages.
One tool/language per answer please.
For C# I use SourceMonitor. It's not as elegant as I would like (it doesn't look at project files; it only looks at directories so if you've got old unused files lying there SourceMonitor will still pick it up and measure its CC) but it's free!
I use the metrics plugin for eclipse which calculates the complexity of your code. besides the cyclomatic complexity it can handle:
A rather old free command line tool for C++ is cyclo I have used it succesfully on Linux and Windows for listing up the complexity of source files.
For both C++ and C#, I use http://www.blunck.info/ccm.html. Can run either from the command prompt or integrated with Visual Studio 2008/2010.