INFO: Project root configuration file: NONE & it is not located in project basedir

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

#----- Default source code encoding
#sonar.sourceEncoding=UTF-8

#----- Default SonarQube server
sonar.host.url=http://localhost:9000

#sonar.projectKey: key name you gave when you created the project.
sonar.projectKey=test

#----- Default source code encoding
sonar.sourceEncoding=UTF-8

#sonar.sources: path to the project to analyze.
sonar.sources=. \

#sonar.login: SonarQube authentication token.
sonar.login=7ea1be14669caf9497466cda11d3faa9ade7ceff

sonar-scanning-examples :
/opt/sonar-scanning-examples# cat sonar-project.properties

#configuration
sonar.host.url=http://localhost:9000
sonar.login=admin
sonar.password=password
sonar.projectKey=test
sonar.projectName=test
sonar.projectVersion=1.0
sonar.sourceEncoding=UTF-8
sonar.sources=. /src
sonar.exclusions=/node_modules/
sonar.tests=. /src
sonar.test.inclusions=**/*.spec.ts

PS:
INFO: ANALYSIS SUCCESSFUL
INFO: EXECUTION SUCCESS

PIC1 :

PIC 2 :

Thanks .

Hi,

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.

 
Ann

Ann :

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 .

Hi,

How about a screenshot of your project homepage?

 
Ann

Ann :

Project Path >> /opt/sonar-scanning-examples#

Web UI >> The main branch has no lines of code.

my code >> /opt/sonar-scanning-examples/src

root@ubuntu:/opt/sonar-scanning-examples/src# ls
Application Domain Infrastructure Presentation

thanks.

Hi,

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.

 
Ann

Ann :

Development language C#
Source Code zip
pxplus.payment.service-master.zip (208.0 KB)

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

Hi,

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.

 
Ann