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

How to verify HMAC in HAProxy

Is it possible to check HMAC validity in HAProxy? Ideally I'd like to set an acl if the HMAC is valid so I can use this in rules. Our Ubuntu 18.04 build server (running Jenkins) sits behind a firewall with only specific IP ranges white-listed. We…
Daps
  • 61
  • 7
2
votes
1 answer

SonarCloud quality check doesn't work after running scan

I am trying to run sonarcloud-quality-gate check after performing sonarcloud-scan. I am doing this because I want bitbucket build pipeline should fail if the quality gate check is failed. Doing this I get some error like this Quality Gate failed:…
Nayan shah
  • 543
  • 3
  • 8
2
votes
1 answer

How do I fix the error : Could not determine java version from '11.0.2'. in travis?

I run gradle in travis with the travis.yml: language:java jdk: oraclejdk11 dist:trusty addons: sonarcloud: organization;steinko-github token: secure: xxxxxxx script: - gradle:build - sonar-scanner And the gradle.build buildscript { …
stein korsveien
  • 1,047
  • 5
  • 13
  • 35
2
votes
1 answer

Problems with authorization on Sonarcloud

Good afternoon. I created an account on sonarcloud via github, but after I changed my username to github, I can not log in to sonarcloud. A message is displayed: "You're not authorized to access this page. Please contact the administrator. Reason:…
Redbore
  • 113
  • 5
2
votes
2 answers

Integrate sonarcloud with slack channel

I'm trying to integrate sonarcloud (not sonarqube) with a Slack channel. I want to have the same behaviour in Slack that the one we have in Github or Travis integration: I mean a push notification on a channel. In Slack exists the option of a…
Pau Trepat
  • 697
  • 1
  • 6
  • 24
2
votes
1 answer

SonarCloud Authorization Error during Build

I know there exist similar topics but they didn't solve my problem. As suggested in the corresponding posts I followed the steps in: https://about.sonarcloud.io/get-started/ (I did this several times with different tokens to make sure I didn't make…
Wolfone
  • 1,276
  • 3
  • 11
  • 31
1
vote
1 answer

Exclude the test files for React components in sonarcloud

I have a React application with the following folder structure src components Component1 Component1.tsx Component2.test.tsx Component2 Component2.tsx Component2.test.tsx utils …
Erick
  • 1,098
  • 10
  • 21
1
vote
0 answers

i cant see SonarCloud result of my golang code

i'm new in devops, and Azure. I'm trying to use SonarCloud in my project with Golang in Azure. I already install the extension, the prepare analysis configuration, run code analysis and publish code gate quality in the CI pipeline. When i run my…
1
vote
0 answers

Select quality profile from Sonar-project.properties file for sonarcloud scan

I have created a custom quality profile from sonarcloud console. I am able to make it default from UI and do the sonarcloud scans for that. Now, for my use-case: I want to do this from sonar-project.properties file so that I can use different…
1
vote
0 answers

Enable sonar scanning for .svelte files

I am not able to run sonar on .svelte files. I have tried updating the language setting by adding .svelte in html tab but no luck. Any help?
Shivang Gupta
  • 3,139
  • 1
  • 25
  • 24
1
vote
0 answers

Have an optional status check enabled by default in Azure Pipelines

We use Azure Pipelines and our branch policy is setup to check our SonarCloud Quality Gate via the status check (https://learn.microsoft.com/en-us/azure/devops/repos/git/pr-status-policy?view=azure-devops). This works fine so far, as we can see the…
huserben
  • 1,034
  • 1
  • 10
  • 19
1
vote
0 answers

How to tell Sonar to use my LCOV file for Code Coverage for GOLANG GO

Team, I am generating go coverage and converting them to html to view in Jenkins. but I want to ship the LCOV file .dat to sonarqube. is there a way? like set a key value in sonar-project.properties ./bazel $BAZEL_STARTUP_OPTS coverage $BAZEL_OPTS…
AhmFM
  • 1,552
  • 3
  • 23
  • 53
1
vote
0 answers

Does sonar cloud support decorative messages for Python in a GitHub PR with workflow?

I used the generic workflow https://github.com/SonarSource/sonarcloud-github-action-samples/blob/generic/.github/workflows/build.yml as suggested in the docs. But I'm not receiving the message from the bot in the repository, code is analyzed just…
Axeltherabbit
  • 680
  • 3
  • 20
1
vote
0 answers

Sonar Analyzer Test Code Issues not shown

I had my SonarQube code analysis setup and it work realy well, it also shows my test code, but it is not showing the issues in my test code. To test this, i build some // TODO: tasks in my test code and they are not reported as Issues in…
1
vote
3 answers

Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar

Could anyone help me understand this, i've tried investigating into an issue all day but can't seem to see much configuration choices on sonarcloud for it. I see online that sonarqube is being used I believe under the hood as version 8 and see…
Jackson Collins
  • 110
  • 2
  • 10