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
21
votes
4 answers

How to add SonarCloud badge on GitHub?

I am trying to add SonarCloud badge to my README. But when I do like…
lapots
  • 12,553
  • 32
  • 121
  • 242
18
votes
2 answers

How to configure Source code analysis for Monorepo?

I have a Mono repo in which all my Spring boot based micro service reside. I know how to configure a SonarQube analysis for poly repo but wondering how sonarqube analysis can be done on a monorepo and how Soanarqube can identify different projects…
Spencer Bharath
  • 507
  • 2
  • 7
  • 21
11
votes
0 answers

Change main branch in Sonarqube without deleting branch

I am trying to change my main branch in Sonarqube from master to mainline as I have been doing my analysis on mainline for the past few months. This post below in the Sonar community says that I have to delete the mainline branch then rename the…
11
votes
3 answers

Is there a possibility to suppress warnings of sonarcloud in source code?

I am facing an issue with some sonarcloud warnings that will not be fixed in the nearest future (and should be disabled for now). The warnings are raised by sonarcloud during build on CI. There are no any local analysers. Is there a way to suppress…
zds
  • 914
  • 1
  • 10
  • 22
10
votes
2 answers

How to configure SonarCloud

I have java project and I want to integrate it with SonarCloud I Follow the official steps: Inspecting code with the SonarQube Scanner # Before inspecting your code, you need to: Create a user authentication token for your account on…
Xelian
  • 16,680
  • 25
  • 99
  • 152
8
votes
1 answer

SonarCloud error on Travis: Not authorized. Please check the properties sonar.login and sonar.password

I have search a lot about this problem also here on stackoverflow, but I didn't find the solution. Until yesterday Travis could execute sonar:sonar without any problem, but today it doesn't work and it gives me this error: ---…
Lulixter
  • 161
  • 1
  • 3
  • 12
8
votes
2 answers

Not getting code coverage in SonarCloud from an Azure Devops .NET core build

I have set up a pipeline for my .NET Core project in Azure Devops using the '.NET Core with SonarCloud' template. When I build the analysis gets run in SonarCloud but with 0% Code coverage (I have tests in my solution). No matter what configuration…
8
votes
2 answers

Travis CI SonarCloud error "Project was never analyzed. A regular analysis is required before a branch analysis"

Hi I am automating code coverage on SonarCloud using Travis CI for a Maven application. Now, running the sonar:sonar command locally submits the report on SoundCloud and I can see it as shown below with Branch master Now I have also configured…
Meena Chaudhary
  • 9,909
  • 16
  • 60
  • 94
7
votes
1 answer

How to integrate SonarCloud with GitHub and Jenkins

I just concluded my GitHub integration with Jenkins so that every time I commit code to my GitHub repository, Jenkins automatically builds. Now I'm trying to integrate SonarCloud too but I haven't been successful. I'm not looking to integrate with…
H. Soares
  • 203
  • 5
  • 22
7
votes
3 answers

Is it possible to customise rules for SonarCloud (not SonarQube)

I'm wondering if it is possible to add a custom rule or modify an existing rule - as mentioned in https://docs.sonarqube.org/display/DEV/Adding+Coding+Rules - to our SonarCloud instance. We've setup SonarCloud on a couple of private projects and I…
6
votes
1 answer

Comparison between Snyk and Sonarcloud/SonarQube?

I need to do a comparison between the features and functionality of Snyk and Sonarcloud/Sonarqube and the only thing I can find is a speed comparison: https://snyk.io/blog/sast-tools-speed-comparison-snyk-code-sonarqube-lgtm/ ....does anyone know if…
mark11
  • 63
  • 3
6
votes
1 answer

Code and details of code coverage not showing in SonarCloud for .Net solution

I have issues seeing details of the code analysis in SonarCloud. What I have working is a .Net Core application with Coverlet. I do see that the results are uploaded and the coverage shows. However, I don't get to see a dashboard, the tab 'code'…
Blitzoff
  • 133
  • 4
  • 11
6
votes
0 answers

Does SonarQube support any kind of config as code or automation?

From what I have seen I have to configure all of my SonarQube settings from the GUI and it gets stored in a DB? Is there any feature where I could define my SonarQube config as code and deploy it to my SonarQube server? I want to automate the…
red888
  • 27,709
  • 55
  • 204
  • 392
6
votes
3 answers

Error using Travis CI with Sonarcloud: Not authorized. Please check the properties sonar.login and sonar.password

I'm following Get started instructions on sonarcloud.io to execute the SonarQube Scanner for Maven from my computer: mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar \ -Dsonar.host.url=https://sonarcloud.io \ …
ron190
  • 1,032
  • 1
  • 17
  • 29
5
votes
2 answers

Errors when running sonarqube-gradle-plugin:3.3 with Java 11

In my Android application project I am using the sonarqube-gradle-plugin:3.3 with OpenJDK 11. When I run ./gradlew sonarqube the following is output to the console. It hasn’t been there ever since. It might be new since I use Java 11. Here is my…
JJD
  • 50,076
  • 60
  • 203
  • 339
1
2 3
15 16