The only way to get an accurate analysis of C/C++/Objective-C files is by using the SonarSource buil

getting this error
The only way to get an accurate analysis of C/C++/Objective-C files is by using the SonarSource build-wrapper
and setting the property “sonar.cfamily.build-wrapper-output”, but it was not specified.

If you don’t want to analyze C/C++/Objective-C files, then prevent them from being analyzed by setting the following properties:

sonar.c.file.suffixes=-
sonar.cpp.file.suffixes=-
sonar.objc.file.suffixes=-

while trying to run sonarscanner command

sonar-scanner
-Dsonar.projectKey=project
-Dsonar.sources=.
-Dsonar.host.url=https://hosturl.com
-Dsonar.login=token

tried adding this in sonar-projects.properties file still see same error
sonar.c.file.suffixes=-
sonar.cpp.file.suffixes=-
sonar.objc.file.suffixes=-

Hi,

Welcome to the community!

What is it that you’re trying to accomplish?

Can you share the analysis log?

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.

 
Ann