Merge Complexity and Effort

At this point, you have two different views of the codebase: one that tells you where the complexity is and one that shows individual change frequencies. We will find potential hotspots where the two views intersect.

To merge the two views, we first save the intermediate files to CSV files:

 
prompt>​ maat -l maat_evo.log -c git -a revisions > maat_freqs.csv
 
prompt>​ cloc ./ --unix --by-file --csv --quiet --report-file=maat_lines.csv
 
...

You should now have two CSV files in your code-maat directory: maat_freqs.csv and maat_lines.csv. Because merging them would be tedious (but straightforward!), we’ll use a Python script available from the Code Maat distribution page.[12]

After you’ve downloaded it, run the included ...

Get Your Code as a Crime Scene 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.