What I found:
[WARN] [10:32:46.014] Missing blame information for the following files:
[DEBUG] [10:35:23.477] Unable to blame file src/main/java/com/********.java. No blame info at line 2. Is file committed? [Author: PersonIdent[Not Committed Yet, , Thu May 26 10:35:23 2016 +0200] Source commit: null]
When I look at that file at line 2, I see this:
$Id: f66aa1b4aa410cb3ad9e93166ddb2addeb026505 $
While on GitLab, it has this:
During checkout, $Id$ gets transformed to a hash by the magic of the .gitattributes file:
and when a .java file is committed, any line with $Id: <hash> $ gets transformed back into $Id$.
I consider it a bug in Jgit blame that it does not respect .gitattributes. When running the plain console "git blame -w", line 2 is shown as the original $Id$.
My question now is, how do I move forward? Apparently it's not a SonarQube bug but a JGit bug. Will SonarQube report this bug or do I need to do it myself, and if so, where do I do that?