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

Why does SonarCloud not require xml/documentation comments on public class members?

This seems like the kind of thing it might normally flag, and we would like to be able to enforce documentation comments on at least public members (class and methods - for c#).
user1368182
  • 423
  • 7
  • 18
0
votes
0 answers

SonarCloud SAAS platform integration with Bamboo CI

These are the tools I am using: VCS Provider: BitBucket Cloud Orchestration tool: Bamboo CI SAST tool: SonarCloud (SAAS soln) Objective: Run automatic scans with SonarCloud whenever new code is pushed or PR is raised. I have created Bamboo CI…
0
votes
1 answer

Bitbucket pipeline for sonarcloud fail

I tried to connect sonarcloud with bitbucket pipeline, but i continue to get this error Container 'docker' exceeded memory limit. I tried to increase memory up to 4096 but with this value i get this error The Build, test and analyze on SonarCloud…
Luca Nitti
  • 67
  • 8
0
votes
1 answer

GitHub SonarCloud action does not scan any file

In my GitHub repository, I configured SonarCloud. My problem is that SonarsScanner detects 0 files, so SonarCloud prints "0 Lines of Code" and obviously does not report any issue. My sonarcloud.yml action configuration file looks like so: name:…
Ivan dal Bosco
  • 3,233
  • 4
  • 19
  • 24
0
votes
0 answers

Mule plugin for sonar cloud

Do we have any MuleSoft plugin for Sonar cloud. currently I see in mule catalyst github we have Sonar qube plugin but it needs Sonar qube installed on-premise. So do we have any similar plugin for Sonar cloud as well.
subhash
  • 19
  • 11
0
votes
1 answer

SonarCloud with Googletest and CMake on GitHub Actions

Introduction Currently, I'm working on a C project with CMake and Googletest. My project is on a GitHub repo. I have configured my GitHub Workflow like this: name: Build on: push: branches: - main pull_request: types: [opened,…
ThrowsError
  • 1,169
  • 1
  • 11
  • 43
0
votes
2 answers

SonarCloud - Cannot setup coverage analysis for Azure DevOps pipeline

I am currently implementing an azure DevOps pipeline for my .Net microservices. I researched and read the sonar cloud doc, but nothing helped yet. I did generate the code coverage report using cobertura and that is working correctly in azure devops…
Jbtf
  • 51
  • 1
  • 8
0
votes
1 answer

Sonar Cloud: “Replace X with a constructor function.”

I am having an issue with Sonar Cloud and SonarQube, and I was hoping someone might be able to help me troubleshoot it. Here is a brief description of the problem: I am trying to create a new document in Mongoose, but SonarQube is giving me the…
Unkown
  • 61
  • 5
0
votes
0 answers

IsAccessible function deprecated on Java 9 + not working on maven test after replacing with canAccess

i'm having problem with correcting bugs on this project on sonarcloud that has a IsAccessible, a deprecated function on Java 9+. I get a compilation error when i do mvn test even after replacing the code with the latest function. I replaced this…
0
votes
0 answers

Setup SonarCloud with Github Action

I want to use SonarCloud to verify my CodeCoverage on GitHub, but there is a project stored together in my Repo. Two projects, each of which uses different tools (Swift and Java) for development. I want to only check Swift Project,Here is the error…
0
votes
0 answers

How to setup github action code coverage analysis swift language in SonarCloud

I've been trying to follow the example provided by SonarCloud to set it up, but it doesn't work. name: SonarCloud on: push: branches: - master pull_request: types: [opened, synchronize, reopened] jobs: build: name: Build and…
RIPSM S
  • 1
  • 1
0
votes
0 answers

SonarCould Error: org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar

I have a project managed with maven, and after successful mvn test I was running the analysis with sonarcloud. I ran the mvn verify sonar:sonar command, but as you can see in the image the build failed. the plugin in the pom file:
0
votes
1 answer

Unable to get report from Jacoco gradle Kotlin project on SonarCloud

Right, so I have a Kotlin Gradle project with the framework SpringBoot. The project is on GitHub and our CI system is Circle CI. At the build.gradle.kts file we have the following configs: sonarqube { properties { …
Lavínia Beghini
  • 165
  • 1
  • 11
0
votes
1 answer

Azure Devops SonarCloud Error: -Project not found. Please check the 'sonar.projectKey' and 'sonar.organization' properties, the 'SONAR_TOKEN'

We are using the Sonarcloud plugin in Azure DevOps. Suddenly, we get the following error in our build pipeline: ##[error]ERROR: Error during SonarScanner execution ERROR: Project not found. Please check the 'sonar.projectKey' and…
Astrophage
  • 1,231
  • 1
  • 12
  • 38
0
votes
0 answers

Can I use the matching state variable to the state setter function? Ex: setValidateFields(validateFields);

I couldn't find a proper answer for that, but I'd like to know if it is a bad practice or a recommendation related to using the matching state variable to the state setter function. setMyState(!myState); It's common to see this approach mainly to…
KarolHarumi
  • 109
  • 1
  • 5