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
0
votes
2 answers

How to use web api sonarcloud

Recently I started using sonarcloud and I was asked for a university project to extract the technical debt of a project. I'm trying to use the web API exposed by sonarcloud but with little success. This is the python code I wrote import…
Dargor
  • 19
  • 1
  • 5
0
votes
0 answers

How to access build/intermediates on CircleCI 2.0?

Trying to run Sonar on a Circle CI 2.0 Android project. For whatever reason when I try to set various configs to the build/intermediates director it can't find it. Do I have to run some build first? Is it in a different directory on Circle?
1tSurge
  • 663
  • 2
  • 7
  • 20
0
votes
0 answers

Sonarqube Pull Request integration with multiple builds

We have a scenario where a single VSTS Pull Request can trigger multiple builds. The issue is that SonarCloud only creates a single code quality status against the PR which seems to only link to one of the builds. Is it supported to have multiple…
gregpakes
  • 4,465
  • 29
  • 43
0
votes
1 answer

Sonarcloud with Github Enterprise

Have tried sonarcloud with public github repositories. But how do I go about integrating it with our enterprise github repos. Thanks
0
votes
1 answer

How to use sonarcloud with travis?

Description We are already using sonarqube locally and we want to use it for our open source projects. This is an example OpenSource project we are trying to…
Dimitri Kopriwa
  • 13,139
  • 27
  • 98
  • 204
0
votes
1 answer

SonarCloud: Got 500 error - Unable to load component class org.sonar.scanner.report.MetadataPublisher when execute mvn verify sonar:sonar

When I execute mvn clean verify sonar:sonar, I get 500 error from maven about: Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar because: Unable to load component class …
0
votes
1 answer

GitHub PR analysis from SonarCloud

Does sonarcloud runs analysis on GitHub PR once the PR is created? or we have to trigger PR analysis through sonar-scanner? If it triggers automatically, is linking (adding github token) to sonarcloud sufficient?
0
votes
1 answer

How to create SonarCloud projects using web API?

I tried create project with Web-API as described bellow, curl -v -X POST https://sonarcloud.io/api/projects/create -d "name=test&project=test" but I got a message; "Insufficient privileges" I wonder it's authority problem, but I don't know how to…
su17
  • 27
  • 7
0
votes
1 answer

SonarCloud Analyse SQL Server SSDT Project

I'm trying to analyse a SQL server SSDT database project with SonarCloud but running into some issues. We are using VSTS with the SonarCloud tasks set up around the build to listen, build, analyse and publish to our SonarCloud account. It runs…
0
votes
2 answers

How can i get the metrics from SonarCloud using language filter?

I referred this page as described below and could get some values. $ curl -v "https://sonarcloud.io/api/measures/component?metricKeys=violations&component=key" | jq But how can I get these values with language filter?
su17
  • 27
  • 7
0
votes
1 answer

How to specify versions of plugins, such as sonarjs in sonarcloud?

I want to use latest version of sonarjs (3.2 at this moment) on sonar cloud, but travis job shows me that version 3.1.1 in use. It seems like sonarcloud versions of plugins can be outdated on a few months. 3.1.1 is useless for me, since my project…
-1
votes
1 answer

How to fix this sonarqube blocker without affecting to the logic

Could you please look at below image and please let me know the solution for this. I have tried to write a try-with-reources for Statement and Resultset but inside try block what should I write enter image description here
thusila
  • 1
  • 3
-1
votes
1 answer

Is there a way to suppress some SonarCloud warnings in TS source code?

I just have some code that keeps giving me a warning in SonarCloud but it was pre-generated with the framework I am using. Is there a way similar to how // @ts-ignore works but for SonarCloud.
PurryFury
  • 113
  • 11
-1
votes
1 answer

Sonarcloud c++ docker cmake

i was trying to integrate sonarcloud in my build. I have created a free account in sonarcloud.io and added necessary steps in build pipeline. When i ran the pipeline, i got the error ERROR: Error during SonarScanner execution…
Jff
  • 91
  • 1
  • 8
-1
votes
1 answer

How to synchronize issues between SonarCloud and TFS

I have a VSTS repo connect to SonarCloud for quality analysis. I need unique issues source for my team. When SonarCloud create issues in his system, I want create an equivalent issue in VSTS. And, when the issue in VSTS closed by a commit, I want…
1 2 3
15
16