Sonnar_scanner C files

Hello
I am trying to scan C files for a local dir using developer trial version

  • sonarqube-8.5.0.37579
  • sonar-scanner-4.5.0.2216-linux

sonar-project.properties

#must be unique in a given SonarQube instance
sonar.projectKey=VCS

# --- optional properties ---

# defaults to project key
#sonar.projectName=My project
# defaults to 'not provided'
#sonar.projectVersion=1.0

# Path is relative to the sonar-project.properties file. Defaults to .
#sonar.sources=.

# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8

sonar.language=c
sonar.cfamily.build-wrapper-output=.

sonar-scanner -Dsonar.projectKey=VCS -Dsonar.sources=. -Dsonar.host.url=http://172.25.140.246:9000 -Dsonar.login=admin -Dsonar.password=admin -Dsonar.svn.username=*** -Dsonar.svn.password.secured=*** -Dsvnkit.http.methods=Basic,Digest,Negotiate,NTLM

sonar_error.log (31.4 KB)

Hi Eugen, welcome to the SonarSource Community!

You might have missed in our documentation that we require use of a build-wrapper utility when analyzing C-family language projects. The build-wrapper will generate an output directory that you must then include as a parameter when you invoke the sonar-scanner.

Thanks for reply
I have downloaded also the build wrapper
The issue persist
I also configured a sub directory for scan but it seems it scans all root dir

sonar-project.properties

#must be unique in a given SonarQube instance
sonar.projectKey=VCS

— optional properties —

defaults to project key

#sonar.projectName=My project

defaults to ‘not provided’

#sonar.projectVersion=1.0

Path is relative to the sonar-project.properties file. Defaults to .

sonar.sources=pgsql_sip_pool

Encoding of the source code. Default is default system encoding

#sonar.sourceEncoding=UTF-8

sonar.language=c
sonar.cfamily.build-wrapper-output=build_output

Hi @jenuc,

did you manage to solve the issue?