Missing Git Blame for the following files

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • what are you trying to achieve
  • what have you tried so far to achieve this

SonarQube version 7.9.1

Hi, I am receiving the following error when building with AWS codebuild:

WARN: Missing blame information for the following files:
642 WARN: * CTFd/themes/careers/assets/js/api.js
643 WARN: * CTFd/themes/core/templates/errors/500.html
644 WARN: * CTFd/themes/admin/assets/js/challenges/challenge.js
645 WARN: * CTFd/themes/learning/assets/js/pages/teams/private.js
646 WARN: * CTFd/themes/core/templates/register.html
647 WARN: * CTFd/themes/core/templates/challenges.html
648 WARN: * CTFd/themes/core/templates/teams/join_team.html
965 WARN: This may lead to missing/broken features in SonarQube

Have looked in to readding git blame information but not sure if this is possible? Or is there a place to add these files to an ignore list?

Many thanks

Welcome, @mr_cb!

The warning simply means that the files were modified after a git checkout and thus the SonarScanner analysis shows that it can’t find the git annotation and blame information. You can simply git commit these changes to the files and try rerunning the analysis via AWS codebuild.

Joe

Thanks for the quick response Joe.

Not sure if that is a suitable fix as the files have been edited after by several developers and is still experiencing the same error.