Data Mining with Code Maat

Code Maat operates on the level of log files generated from any of several version-control systems (including Subversion, TFS, Git, and others), and the GitHub page contains detailed instructions on how to generate the input data to the tool.

Once you have a log file you feed it to Code Maat, which parses the log file and then performs any of the file- or architectural-level analyses discussed in this book. You specify the type of analysis via a command-line argument. Here’s an example of a change coupling analysis, specified through the -a coupling argument, and using one of the supported Git formats where the version-control log is stored in the file vcs_log.txt:

 adam$ java -jar code-maat-standalone.jar -c git2 ...

Get Software Design X-Rays now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.