Questions tagged [sonarcloud]

SonarCloud is the code quality cloud service provided by SonarSource.

The main features of SonarCloud are:

  • 16 languages: Java, JS, C#, C/C++, Objective-C, TypeScript, Python, ABAP, PLSQL, T-SQL and more.
  • Thousands of rules to track down hard-to-find bugs and quality issues thanks to powerful static code analyzers.
  • Cloud CI Integrations, with Travis, VSTS, AppVeyor and more.
  • Deep code analysis, to explore all source files, whether in branches or pull requests, to reach a green quality gate and promote the build.
  • Fast and Scalable
227 questions
1
vote
2 answers

Sonarcloud gate in Azure Devops pull request stuck in waiting status

We have a Sonarcloud quality gate in the Pull request policy in Azure Devops. Mostly it works but sometimes it get's stuck. We added an update to the PR but is it still at status Waiting in Azure Devops. When I check Sonarcloud for this branch it…
Mathias Rönnlund
  • 4,078
  • 7
  • 43
  • 96
1
vote
1 answer

Do I have any fault for this java:S3077?

I have a class whose fields can't help but lazily initialized. class Some { public Some getPrevious() { { final Some result = previous; if (result != null) { return result; } …
Jin Kwon
  • 20,295
  • 14
  • 115
  • 184
1
vote
1 answer

Sonarcloud not displaying issues for .net core app using dotnet-sonarscanner

I've created a test console app using .net core 3.1, added it to github, and setup a GitHub action using the template provided by Sonarcloud.io. The build analysis part looks like this: .\.sonar\scanner\dotnet-sonarscanner begin…
David Masters
  • 8,069
  • 2
  • 44
  • 75
1
vote
1 answer

Connecting SonarCloud with bitbucket pipelines

I am new to sonarcloud and would like to automate my code quality tests in bitbucket I am trying to use bitbucket pipelines to do it (I am new to pipelines too) my end goal is to do a branch analysis of codes and display the results in the bitbucket…
u0311
  • 33
  • 4
1
vote
1 answer

Sonarcloud quality policy on PR in Azure Devops not analyzed for all jobs in build

We have build pipeline in Azure DevOps that contains two jobs that build two projects from the same repo (angular frontend and java backend). Very much abbreviated the build pipeline looks like this. This build pipeline is also used for Build…
Mathias Rönnlund
  • 4,078
  • 7
  • 43
  • 96
1
vote
0 answers

Sonarcloud coverage configuration after 18 dec 2020

I have Java/Maven Open source project with coverage on sonarcloud. My CI/CD is Travis-ci and my code source is Github. https://github.com/NoraUi/NoraUi Before 18 dec 2020, my surfire and jacoco configuration is OK, but after sonarcloud change and my…
Stéphane GRILLON
  • 11,140
  • 10
  • 85
  • 154
1
vote
1 answer

How to optimize Bitbucket pipeline for Sonarcloud scan pipe?

Every time Sonarcloud scanner starts, it download the image. It slowing down whole pipeline and generate additional cost. Poor documentation don't have any information about additional cache…
GetoX
  • 4,225
  • 2
  • 33
  • 30
1
vote
1 answer

SonarCloud issue when we use azure devops with self hosted agent

SonarCloud server [https://sonarcloud.io] can not be reached at sun.security.validator.Validator.getInstance(Validator.java:181) at sun.security.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:318) at…
1
vote
1 answer

Steps required to do multiple scans in a single pipeline

Can anyone help me to understand what's necessary to perform several sonar scans in a single pipeline? I've read that sonarcloud doesn't support multiple project scans into a single project, so i separated them into different sonarcloud projects. I…
1
vote
1 answer

waitForQualityGate can't connect to Sonarcloud.io to get quality gate result

I had initially an issue to scan my repo with SonarCloud.io i am using sonar-scanner.4.2 i was unable to connect to SonarCloud.io due to a proxy issues but i fixed it in adding SONAR_SCANNER_OPTS='-Dhttps.proxyHost=****** -Dhttps.proxyPort=****' in…
1
vote
1 answer

SonarCloud check status not available in Github

Currently, I'm using SonarCloud to analyze some of the repositories in my project. But in some of them, the check status is not present (I want to make this mandatory). The CI/CD server is CircleCI and SonarCloud it is working ok (PR branch is…
Jorge Tovar
  • 1,374
  • 12
  • 17
1
vote
1 answer

Jacoco Reports not getting pushed to SonarCloud

I am using Sonarcloud with gradle plugin . I was able to run Sonarqube analysis using gradle and push the result to Sonarcloud but for some reason the sonar plugin is not pushing the jacoco code coverage report to Sonar cloud . I cloud see the code…
Spencer Bharath
  • 507
  • 2
  • 7
  • 21
1
vote
1 answer

Sonarcloud analysis of Dotnet core project with Azure DevOps says "The main branch has no lines of code."

The scan seems to run fine but in Sonarcloud we can browse the code files under the Code tab but there are no scan results. In another project containing both c# and typescript code, the typescript (and css etc) is analyzed but not the c# code. We…
Mathias Rönnlund
  • 4,078
  • 7
  • 43
  • 96
1
vote
1 answer

Sonarcloud displays 0 code coverage for JS

We are try to integrate sonarcloud with circleci, for each commit our circleci will trigger a build with test cases and project is based on Nodejs. Once the execution is completed, still the dashboard shows code coverage % as…
Harsha
  • 153
  • 1
  • 10
1
vote
2 answers

.trx test file generation in ng run test for sonar cloud code coverage

I am facing issues to get code coverage report via sonar cloud in my angular project. I have configured karma tool to get the test report. Output file is generating test report in .xml format. I configured the test report path in sonar as…
sam
  • 19
  • 1