my question :
1.INFO: Project root configuration file: NONE
2. it is not located in project basedir
sonarscanner-config : /
opt/sonarscanner/conf# cat sonar-scanner.properties #Configure here general information about the environment, such as SonarQube server connection details for example #No information about specific project should appear here
#----- Default SonarQube server #sonar.host.url=http://localhost:9000
It’s not clear to me what you’re reporting or asking for help with. Your log screenshots (for future reference, it’s much better to copy/paste your logs rather than providing screenshots) show analysis succeeded.
I am mildly alarmed by what you’ve presented as your scanner configuration, however. While it makes sense to configure the auth token for your technical user (you’ve invalidated that token by now, right? RIGHT?) configuring sonar.projectKey and sonar.sources does not. Also, it’s not clear to me whether the section headed by “#configuration” is intended to be a continuation of your scanner configs or to be - separately - your project configs.
I have successfully scanned, but I cannot see any information on the dashboard ??
Can the problem be corrected from the settings?
You need other information, I can provide it . Thanks .
I notice in your properties that you’ve configured sonar.sources=. /src (and the same for tests). I’m not certain whether that’s being interpreted as one value or two. There’s no comma, so let’s go with one. It means that your source directory is named " src" (with a leading space). Surely that’s not right?
Try setting it to just sonar.sources=src and see how that goes.
WARN: Your project contains C# files which cannot be analyzed with the scanner you are using. To analyze C# or VB.NET, you must use the SonarScanner for .NET 5.x or higher
Thanks for the logs and especially for picking out the warning. In the future it would be great if you could copy/paste the text of your error logs. Screenshots are hard to work with.
So the problem seems to be that you’re analyzing a .NET project without using SonarScanner for .NET. You’ll need to switch. The docs should get you started.