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

SonarCloud Coverage is always 0% in spring with gradle project on bitbucket pipelines

I'm currently trying to configure a Sonarcloud in my SpringBoot project with gradle and bitbucket-pipelines. But for every PR and every branch it always shows 0% line coverage. I've added the plugin configuration to my build.gradle file: id…
1
vote
1 answer

Sonarcloud sonar.language=js is also detecting css code

I created SonarCloud Integration for my React repository. My sonar-project.properties file looks like…
Oguzhan Aygun
  • 1,314
  • 1
  • 10
  • 24
1
vote
0 answers

SonarCloud - `ECJ Unable to resolve type xxx` when scanning with Gradle 6.5.1 and Java 13.0.2

I am using Gradle scanner for analysis of my multi-project setup. When I run the analysis it works as expected but it gives me error logs like ECJ Unable to resolve…
Parag Kadam
  • 3,620
  • 5
  • 25
  • 51
1
vote
0 answers

Missing step to analyse my project in SonarCloud

I have to create an Azure pipeline to install and deploy my Angular project, one of those steps is not working, in other words, the project was not found in SonarCloud : My pipeline is : parameters: - name: name default: '[EPP] Front Client' …
Mirlo
  • 625
  • 9
  • 26
1
vote
1 answer

SonarScanner CLI error: failed to request and parse localhost:9000

When using SonarScanner against a local source, following the suggested manual recipe for classic .NET and MSBuild, I find the following error (look at the bottom line): SonarScanner for MSBuild 5.5.3 Using the .NET Framework version of the Scanner…
1
vote
1 answer

How to set up a monorepo in SonarCloud with a Java + Angular application

I have developed an application where the backend is developed using Java language (with maven) and the frontend is using Angular language. I host both parts in one project in github. Now I am interested on the use of SonarQube on SonarCloud. For…
King Midas
  • 1,442
  • 4
  • 29
  • 50
1
vote
0 answers

How do I make SonarCloud read a local JaCoCo report?

I need to make SonarCloud import a coverage report made by JaCoCo during the build in the CI pipeline. The coverage is done on java binaries (jar file) not on plain source files. In the pom.xml I've put the following…
lilith
  • 63
  • 5
1
vote
2 answers

Sonarcloud: Unexpected unknown at-rule "@tailwind"

Sonarcloud is reporting a bug in my Vue 3 application due to the Tailwind settings, however it is as in the documentation. What is the best alternative in this case?
sfn
  • 263
  • 1
  • 2
  • 13
1
vote
1 answer

SonarCloud Code Coverage always coming as 0 - GitHub Actions dotnet Core

I am trying to get the Code Analysis done with SonarCloud using the Github actions for my .NET Core application. I have added the below code in my build.yml file for .NET Core Build & Test to check if Code Coverage is populating in…
1
vote
0 answers

SonarLint plugin misses some (SonarCloud's) rules locally

TL;DR -> Force code smells to apear as SonarCloud issues on IDE I got SonarLint plugin (vscode) installed locally and configured with external SonarCloud rules (by my organization's project). The thing is even though it is well configured, some…
1
vote
1 answer

Configure sonar.issue.ignore.multicriteria for multiple paths

I want to disable a SonarQube rule for multiple files at different paths. Also I want to make this configuration within the pom.xml and to through the Sonar UI. I couldn't find any clue on how to do this. My best guess is that I have to create…
ClaudiaR
  • 3,108
  • 2
  • 13
  • 27
1
vote
1 answer

Use IS NULL and IS NOT NULL instead of direct NULL comparisons in postgreSQL

I have this sql query: ALTER TABLE outfit ADD CONSTRAINT check_non_empty_string CHECK (image_uri <> ''); This works good but SonarCloud raised this as a bug. I am using PostgreSQL 13.2, is there a better way of writing this query or can I…
Anita
  • 2,741
  • 27
  • 28
1
vote
0 answers

Azure Pipelines SonarCloud task started to fail (since a few days)

Our company uses Azure DevOps Pipelines for building software. All pipelines are connected to SonarCloud for code analysis. While all our plans (DevOps and Sonar) are paid, I expect to get faster and clearer answers here Monday November 30th…
usr-local-ΕΨΗΕΛΩΝ
  • 26,101
  • 30
  • 154
  • 305
1
vote
1 answer

How to get exact code coverage in sonarcloud for angular

I am trying to produce code coverage report in sonarcloud for angular-12. Could someone help me how to configure azure pipeline for generating correct code coverage percentage. Currently I am configurating as below, …
1
vote
1 answer

May I ignore this hotspot security alert?

I am trying sonar cloud. I analysed this project here : https://sonarcloud.io/dashboard?id=dominique-bureau_classified_ads It is a PHP project (using Laravel framework). As you can see , there is one "security hotspot". About the "config/cors.php"…
Dom
  • 2,984
  • 3
  • 34
  • 64