adamtornhill/code-maat

code maat Parse error at line 1 on code maat sources

tomer-ben-david opened this issue · 5 comments

Hi, I did git clone for code maat then:

code-maat$ git log --all --numstat --date=short --pretty=format:'--%h--%ad--%aN' --no-renames > git.log
java -jar target/code-maat-1.0-SNAPSHOT-standalone.jar -l git.log -c git

and result:

Invalid argument:  java.lang.IllegalArgumentException: input: --788a0f3--2016-07-19--Adam Tornhill
1	1	README.md
, reason: Parse error at line 1, column 1:
--788a0f3--2016-07-19--Adam Tornhill
^
Expected:
[

This is Code Maat, a program used to collect statistics from a VCS.
Version: 1.0-SNAPSHOT

can you help please?

@tomer-ben-david Sure, you just need to specify a different option: replace -c git with -c git2.

code-maat supports two different Git log formats and the command line argument has to match the format of the log as documented here.

excellent!! missed that, its working.

Perfect - happy to hear that! You may also want to have a look at https://codescene.io/, which automates all these steps and visualizations. It's a free service for open source.

thanks, do you still have: 'merge_comp_freqs.py'?