False invalid branch name error

  • Versions: SonarQube Scanner 3.0.3.778 on Travis-CI with sonnarcloud.io
  • Error observed:
ERROR: Error during SonarQube Scanner execution
ERROR: 'greenkeeper/@types/socket.io-2.1.1' is not a valid branch name. It can only contain 'A-Z', 'a-z', '0-9', '-', '_', '.', and '/')
  • How to reproduce: create a branch name with an @ and scan it.
  • Workaround: use of git check-ref-format --branch to check for valid branch names.

greenkeeper/@types/socket.io-2.1.1 is a valid branch name.

Hi,

This issue will be fixed by https://jira.sonarsource.com/browse/SONAR-11561.

Regards,
Julien Lancelot

1 Like

Thank you Julien.

Hi,

we have same issue, but our special characters are letters from czech alphabet, i.g ěščřžýáíéóúůďň

For example: feature/Složka-zákazníka is valid git branch name