Unable to see bug analysis from sonarqube but build passed

  • Developer Edition
  • Version 9.1 (build 47736)
    plugin:3.3

can you please help me how to fix this issue

Hi,

Welcome to the community!

That looks like an empty analysis. Care to share your analysis logs?

 
Ann

:31:28.543968 Running Tarjan on 0 nodes
2021-10-28T17:31:28.5450864Z INFO: 17:31:28.544133 Tarjan found 0 components
2021-10-28T17:31:28.5451461Z INFO: 17:31:28.544224 Variable type analysis: done
2021-10-28T17:31:28.5457477Z INFO: Analyzing 2 ucfgs to detect vulnerabilities.
2021-10-28T17:31:28.6815362Z INFO: Taint analysis starting. Entrypoints: 3
2021-10-28T17:31:28.6816851Z INFO: Running symbolic analysis for 'JS'
2021-10-28T17:31:28.9971216Z INFO: Taint analysis: done.
2021-10-28T17:31:28.9971962Z INFO: Sensor JsSecuritySensor [security] (done) | time=524ms
2021-10-28T17:31:29.0002527Z INFO: ------------- Run sensors on project
2021-10-28T17:31:29.0216433Z INFO: Sensor Zero Coverage Sensor
2021-10-28T17:31:29.0478726Z INFO: Sensor Zero Coverage Sensor (done) | time=27ms
2021-10-28T17:31:29.0631012Z INFO: CPD Executor 2 files had no CPD blocks
2021-10-28T17:31:29.0636795Z INFO: CPD Executor Calculating CPD for 16 files
2021-10-28T17:31:29.1035054Z INFO: CPD Executor CPD calculation finished (done) | time=34ms
2021-10-28T17:31:29.2083653Z INFO: SCM writing changed lines
2021-10-28T17:31:29.2172403Z INFO: SCM writing changed lines (done) | time=9ms
2021-10-28T17:31:29.2199706Z INFO: Analysis report generated in 110ms, dir size=195.5 kB
2021-10-28T17:31:29.2577486Z INFO: Analysis report compressed in 37ms, zip size=44.1 kB
2021-10-28T17:31:29.3748953Z INFO: Analysis report uploaded in 107ms
2021-10-28T17:31:29.3767524Z INFO: ANALYSIS SUCCESSFUL, you can browse ***/dashboard?id=Jibestream_cx_android_base&pullRequest=2
2021-10-28T17:31:29.3771781Z INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
2021-10-28T17:31:29.3775490Z INFO: More about the report processing at ***/api/ce/task?id=AXzH9Oq-bZPl2XWgmAb2
2021-10-28T17:31:29.3875726Z INFO: Analysis total time: 12.454 s
2021-10-28T17:31:29.3931979Z INFO: ------------------------------------------------------------------------
2021-10-28T17:31:29.3937457Z INFO: EXECUTION SUCCESS
2021-10-28T17:31:29.3943000Z INFO: ------------------------------------------------------------------------
2021-10-28T17:31:29.3950229Z INFO: Total time: 21.819s
2021-10-28T17:31:29.4957018Z INFO: Final Memory: 39M/134M
2021-10-28T17:31:29.4964256Z INFO: ------------------------------------------------------------------------
2021-10-28T17:31:30.2151073Z Post job cleanup.
2021-10-28T17:31:30.4594034Z [command]/usr/bin/git version
2021-10-28T17:31:30.4650389Z git version 2.33.1
2021-10-28T17:31:30.4743404Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2021-10-28T17:31:30.4792024Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :
2021-10-28T17:31:30.5606393Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2021-10-28T17:31:30.5659240Z http.https://github.com/.extraheader
2021-10-28T17:31:30.5660934Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
2021-10-28T17:31:30.5663091Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :
2021-10-28T17:31:30.6186663Z Cleaning up orphan processes

Hi,

That’s not the entire analysis log.

From the screenshot, I guess you’re analyzing a PR. Are you sure there were changed lines of code in it?

 
Ann

Hi ,

No we have not changed any…you want sonar-project.properties file code

sonar.sources=./simple/src only added this path only due to limitation of number of lines code.

Hi,

What changed in the PR you’re analyzing? Was it only non-code stuff such as whitespace, comments & docs? Or was it actual lines of code?

 
Ann

its actual lines of code.

Hi,

When you go to your PR in SonarQube and you click on Code, in the project-level menu, what do you see?

 
Ann

Hi,

Could you share the analysis log?

 
Ann

cx_android_base.txt (55.7 KB)
logs_21.zip (25.6 KB)

Uploaded logs, please review it

And what’s the language of the changes?

 
Ann

image

Hi,

Okay, first, how many lines of code were changed in the PR? Redacted GitHub screenshots would be nice here. Second, of the lines of code changed in the PR, what were the languages? Not in the project as a whole; in the PR.

 
Ann

Github repo screen shot
image

I meant a screenshot of what changed in the PR

and Kotlin Programming language

image