Sonar-scanner no problems found?

Dear Community,

  • SonarQube Community Build, shellcheck:SC2280
  • how is SonarQube deployed: zip, on Debian 12
  • testing if SonarQube finds problems

I integrated some “bugs” into my shell scripts e.g. shellcheck:SC2280 puts this into the first lines:

#!/bin/sh
$0=myname

I am running sonar-scanner manually like this:

sonar-scanner \
  -Dsonar.projectKey=myproject \
  -Dsonar.sources=. \
  -Dsonar.host.url=192.168.100.123 \
  -Dsonar.login=xyz

The file in question then is listed on the main page. But with zero lines of code and no issues found.

What could be the issue?

thx!

Hey there.

Sounds like you should reach out to the maintainer of the shellcheck plugin at GitHub - sbaudoin/sonar-shellcheck: SonarQube plugin to analyze Shell scripts with ShellCheck!