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
1 answer

SonarCloud coverage stating that class property with JsonProperty annotation not covered by tests

I have a Kotlin project with Spring, and I created a class that looks like the following: @JsonIgnoreProperties(ignoreUnknown = true) data class Response( val id: String, @JsonProperty("quantity_of_days") val quantityOfDays: Int, ) And…
Lavínia Beghini
  • 165
  • 1
  • 11
0
votes
0 answers

The goal you specified requires a project to execute but there is no POM in this directory (/home/runner/work/**)

I've got one nasty error since Monday and sonar community fast at providing support. https://github.com/BlinxCode/Blinx-Microservice/ I have a microservice project( link to github above) with github action and sonarcloud. It is complaining of…
olajide
  • 972
  • 1
  • 13
  • 26
0
votes
0 answers

Files not ignored in the analysis

I am trying to remove as much LOC as possible to prevent to have to extend my plan. I setup the exclusion as follow : I tried multiple way using wildcard (single and double, not file extensions specified), and tried those patterns to be sure on…
Bobby
  • 4,372
  • 8
  • 47
  • 103
0
votes
0 answers

sonar cloud api giving Insufficient privileges in python

I want to create a project in sonar cloud using its API and I can do that in Postman with the URL and token but when I try it with python it is not working and giving Insufficient privileges error I tried to copy the code from postman but then also…
Alex
  • 53
  • 6
0
votes
0 answers

Sonarqube incorrectly reports "Unexpected missing generic font family"

Sonarqube is showing this bug "Unexpected missing generic font family" even though this sans-serif generic font family is included in the font-family set. Is this a false positive from Sonarcloud? Or are there any real bug in this CSS code…
Sahan Randika
  • 47
  • 1
  • 14
0
votes
1 answer

Is there a tool (like SonarCloud) to check Flutter code quality?

As SonarCloud doesn't support Flutter/Dart I was wondering if there is an alternative for checking the code quality of Flutter projects.
0
votes
0 answers

Dotnet Sonarcloud end failed

I trying to integrate my Solution based on .net6 with SonarCloud and Github actions.The problem is that the action build failed on the sonar scanner end.I tried to change working dirs but with the same effect.The project is public HERE The…
0
votes
1 answer

List of users in private SonarCloud Organization

I am attempting to use the SonarCloud API to automatically give me a list of all users in my organization. Eventually I would like to automate it in an AzureDevOps Pipeline, so getting the list of users using curl (or something similar) would be…
user13236236
0
votes
1 answer

Android Gradle - SonarCloud Integration with Jacoco Plugin, coverage is always 0.0%

I am trying to sync my locally generated Coverage Report from Jacoco to SonarCloud, even though there are no errors, the Coverage is always 0.0%. I am able to generate a JacocTestReport.xml with an overall coverage of 86%. Below are the code…
K_Gupta
  • 21
  • 1
0
votes
0 answers

SonarCloud New Code and Code Coverage Setup for Spring Boot

I am trying to perform analysis on the new code however the sonarCloud seems to analyze everything. I am not sure what's missing. I am using 2 Github workflows, one during pull request name: Application CI on: pull_request: branches: -…
abiieez
  • 3,139
  • 14
  • 57
  • 110
0
votes
1 answer

Sonar Cloud - Exclude Selenium from Sonar

I am running a azure devops pipeline with sonar cloud and I wanted to exclude selenium folder from sonar cloud with following: sonar.exclusions=NWP.Selenium/** And it did this It was not included in coverage but it was not fully excluded Does…
Kqly
  • 66
  • 4
0
votes
1 answer

How to avoid to execute a task in Yaml template in Azure

I have a generic yaml template which is commonly used for many tasks in Azure, and we have some tasks related to sonarcloud and that is not required for few pipelines. And we are not supposed to update the existing template. Is there some possible…
Kivi
  • 485
  • 1
  • 9
  • 26
0
votes
0 answers

Error SonarCloud : "This class has 6 parents which is greater than 5 authorized."

My test in sonarcloud reports this error that I have never found anywhere. public class PngjPrematureEnding extends PngjInputException { public PngjPrematureEnding(String message) { super(message); } } How should I redefine…
Cangiante
  • 1
  • 1
0
votes
1 answer

Sonar cloud UnCoverage Lines is difference compare with code

When I fix coverage in sonar cloud the report say that UnCoverage Lines is 1 But I saw red warning in code is so many How can I config "UnCoverage Lines" it count number of line uncoveraged correctly Thank guys in advance !
0
votes
2 answers

Disable pull request analysis for sonarcloud.io when SonarCloud Automatic Analysis is used

Is there a way to disable pull request analysis for sonarcloud.io when SonarCloud Automatic Analysis is used for a Github repository? I need the long-lived branches analysis only, but I get all team PR's analyzed. What's the way to disable analysis…
kza
  • 1,590
  • 13
  • 32