SonarQube when scanned show 0 bug 0 issues 0 code smell

I have run sonar-scaner.bat in Cmd and a Report is published in Qube Dashboad but shows 0 code smell, 0 bug, 0 issue. what wrong am I doing?

For the Same in eclipse when scanner with sonar lint shows 7 issues.

Plz help


It will be impossible to help you with so little detail. Let’s start with your analysis logs. Why don’t you add them here?


Thanks for acknowledging. I was able to resolve the issue.

My issue was that i had done the setup for Both Sonar Qube and sonar scanner but whenever i was running the scanner it would give me the below log:

INFO: Calculating CPD for 0 files
INFO: CPD calculation finished

I was able to solve it by running sonar-scanner.bat from the location of the Java Project.

INFO: Scanner configuration file: C:\Sonar\sonar-scanner-cli-\sonar-scanner-\bin\..\conf\
INFO: Project root configuration file: NONE
INFO: SonarQube Scanner
INFO: Java 1.8.0_121 Oracle Corporation (64-bit)
INFO: Windows 10 10.0 amd64
INFO: User cache: C:\Users\manishav\.sonar\cache
INFO: SonarQube server 7.3.0
INFO: Default locale: "en_US", source code encoding: "UTF-8"
INFO: Publish mode
INFO: Load global settings
INFO: Load global settings (done) | time=126ms
INFO: Server id: BF41A1F2-AWX3CFj-LfhlDAYJa51u
INFO: User cache: C:\Users\manishav\.sonar\cache
INFO: Load/download plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=46ms
INFO: Load/download plugins (done) | time=95ms
INFO: Loaded core extensions:
INFO: Process project properties
INFO: Load project repositories
INFO: Load project repositories (done) | time=24ms
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=104ms
INFO: Load active rules
INFO: Load active rules (done) | time=1576ms
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=104ms
WARN: SCM provider autodetection failed. No SCM provider claims to support this project. Please use sonar.scm.provider to define SCM of your project.
INFO: Project key: Java_Program
INFO: Project base dir: C:\Users\manishav
INFO: -------------  Scan Java_Program
INFO: Base dir: C:\Users\manishav
INFO: Working dir: C:\Users\manishav\.scannerwork
INFO: Source paths: C:\New_Viking_Repository\Progression\Java_Program\src\JavaProgram
INFO: Source encoding: UTF-8, default locale: en_US
INFO: Load server rules
INFO: Load server rules (done) | time=675ms
INFO: Index files
WARN: File 'C:\New_Viking_Repository\Progression\Java_Program\src\JavaProgram\' is ignored. It is not located in module basedir 'C:\Users\manishav'.
INFO: 0 files indexed
INFO: Sensor SonarJavaXmlFileSensor [java]
INFO: Sensor SonarJavaXmlFileSensor [java] (done) | time=1ms
INFO: Sensor Zero Coverage Sensor
INFO: Sensor Zero Coverage Sensor (done) | time=0ms
INFO: No SCM system was detected. You can use the 'sonar.scm.provider' property to explicitly specify it.
**INFO: Calculating CPD for 0 files**
**INFO: CPD calculation finished**
INFO: Analysis report generated in 106ms, dir size=27 KB
INFO: Analysis reports compressed in 30ms, zip size=6 KB
INFO: Analysis report uploaded in 342ms
INFO: ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard?id=Java_Program
INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
INFO: More about the report processing at http://localhost:9000/api/ce/task?id=AWX3CaNWLfhlDAYJa7jr
INFO: Task total time: 6.623 s
INFO: ------------------------------------------------------------------------
INFO: ------------------------------------------------------------------------
INFO: Total time: 8.385s
INFO: Final Memory: 15M/262M
INFO: ------------------------------------------------------------------------

hi @manishaVer: how did you solve this issue?. I’m facing this issue. Please help me fix this fucking issue.

Hi @Diep_Nguyen_Ngoc
Welcome to the forum.
Please create a new topic describing your problem, with all the logs. Also please use appropriate language.

1 Like