# \#salesforce

**URL:** https://community.sonarsource.com/tag/salesforce/317.md

[Latest](https://community.sonarsource.com/latest.md) · [Categories](https://community.sonarsource.com/categories.md) · [Tags](https://community.sonarsource.com/tags.md)

---

## [0% Apex coverage in SonarCloud despite 98% in Sandbox & 99% in JSON report](https://community.sonarsource.com/t/0-apex-coverage-in-sonarcloud-despite-98-in-sandbox-99-in-json-report/186852)

<div class="topic-metadata">

**Author:** [@Avadhoot\_BHARANKAR-S](https://community.sonarsource.com/u/Avadhoot_BHARANKAR-S)\
**Replies:** 1\
**Last updated:** [August 3, 2026, 2:20am UTC](https://community.sonarsource.com/t/0-apex-coverage-in-sonarcloud-despite-98-in-sandbox-99-in-json-report/186852 "2026-08-03T02:20:32Z")

</div>

ALM used GitLab CI system used GitLab CI (2-stage pipeline: Test Run stage → Sonar Scan stage) Scanner command used Bash # Stage 1: Generate coverage sf apex run test $TEST\_ARGS \\ --code-coverage \\ --wait 60 \\ -…

---

## [SonarQube Scans Guidance When the New Code = Previous Version](https://community.sonarsource.com/t/sonarqube-scans-guidance-when-the-new-code-previous-version/183666)

<div class="topic-metadata">

**Author:** [@mohdthus\_cisco](https://community.sonarsource.com/u/mohdthus_cisco)\
**Replies:** 1\
**Last updated:** [June 19, 2026, 10:11am UTC](https://community.sonarsource.com/t/sonarqube-scans-guidance-when-the-new-code-previous-version/183666 "2026-06-19T10:11:56Z")

</div>

Hi Everyone, I am new to the SonarQube world so requesting some guidance on how the scan typically works. At our end, we have New Code in SonarQube added as “Previous Version” . So if I have an apex class with suppose…

---

## [Sonarqube and Salesforce Code Analyser with SARIF report](https://community.sonarsource.com/t/sonarqube-and-salesforce-code-analyser-with-sarif-report/145405)

<div class="topic-metadata">

**Author:** [@jani\_r](https://community.sonarsource.com/u/jani_r)\
**Replies:** 3\
**Last updated:** [August 1, 2025, 11:48am UTC](https://community.sonarsource.com/t/sonarqube-and-salesforce-code-analyser-with-sarif-report/145405 "2025-08-01T11:48:37Z")

</div>

SonarQube Community Build 25.5.0.107428 SonarScanner CLI 7.1.0.4889 We have a Salesforce application and using the Salesforce Code Analyser to analyse Apex and LWC (js) code The analyser outputs a SARIF report that we…

---

## [SQ Integration with Copado](https://community.sonarsource.com/t/sq-integration-with-copado/132392)

<div class="topic-metadata">

**Author:** [@srih179](https://community.sonarsource.com/u/srih179)\
**Replies:** 4\
**Last updated:** [December 20, 2024, 2:01pm UTC](https://community.sonarsource.com/t/sq-integration-with-copado/132392 "2024-12-20T14:01:36Z")

</div>

Hello, we want to integrate Sonarqube(using SQ enterprise 10.8 with an on-prem environment) with Copado agents. as an initial step, we have created inbound and outbound rules from SQ side Firewall for copado agent’s IP…

---

## [APEX Test Coverage automation](https://community.sonarsource.com/t/apex-test-coverage-automation/117230)

<div class="topic-metadata">

**Author:** [@Lysander](https://community.sonarsource.com/u/Lysander)\
**Replies:** 2\
**Last updated:** [July 10, 2024, 7:43pm UTC](https://community.sonarsource.com/t/apex-test-coverage-automation/117230 "2024-07-10T19:43:36Z")

</div>

Hey I am working on automating SonarQube scan for my Salesforce project in GitHub Actions. I am struggling with downloading APEX Coverage report so SonarQube can analyze it. Errors I am facing are not related to Sonar…

---

## [How to mark test classes for Salesforce Org?](https://community.sonarsource.com/t/how-to-mark-test-classes-for-salesforce-org/112314)

<div class="topic-metadata">

**Author:** [@Yadhu](https://community.sonarsource.com/u/Yadhu)\
**Replies:** 3\
**Last updated:** [April 2, 2024, 1:09pm UTC](https://community.sonarsource.com/t/how-to-mark-test-classes-for-salesforce-org/112314 "2024-04-02T13:09:12Z")

</div>

Since the org structure of my project doesn’t differentiate between test classes and src classes, I am unable to update it on the properties file. Also, since the project is setup locally on a different system, I dont ha…

---

## [Does Sonarqube exclude certain rules for test classes?](https://community.sonarsource.com/t/does-sonarqube-exclude-certain-rules-for-test-classes/112313)

<div class="topic-metadata">

**Author:** [@Yadhu](https://community.sonarsource.com/u/Yadhu)\
**Replies:** 1\
**Last updated:** [April 1, 2024, 2:10pm UTC](https://community.sonarsource.com/t/does-sonarqube-exclude-certain-rules-for-test-classes/112313 "2024-04-01T14:10:08Z")

</div>

Does SQ automatically exclude certain rules for Salesforce apex test classes?

---

## [SonarQube proxy server Error :502](https://community.sonarsource.com/t/sonarqube-proxy-server-error-502/89515)

<div class="topic-metadata">

**Author:** [@Shivam1196](https://community.sonarsource.com/u/Shivam1196)\
**Replies:** 1\
**Last updated:** [April 20, 2023, 3:58pm UTC](https://community.sonarsource.com/t/sonarqube-proxy-server-error-502/89515 "2023-04-20T15:58:26Z")

</div>

This issue we are facing with some orgs while running the scan

---

## [Analysis not working due to node version issue](https://community.sonarsource.com/t/analysis-not-working-due-to-node-version-issue/68688)

<div class="topic-metadata">

**Author:** [@ismailnguyen\_occ](https://community.sonarsource.com/u/ismailnguyen_occ)\
**Replies:** 3\
**Last updated:** [August 22, 2022, 6:41pm UTC](https://community.sonarsource.com/t/analysis-not-working-due-to-node-version-issue/68688 "2022-08-22T18:41:04Z")

</div>

Hello everyone, We’ve setup Bitbucket Pipelines to trigger code analysis and quality gate reviews on each pull request change with the following versions of sonarcloud packages: sonarsource/sonarcloud-scan:1.2.0 sonar…

---

## [Problem with importing Salesforce code coverage to SonarQube server](https://community.sonarsource.com/t/problem-with-importing-salesforce-code-coverage-to-sonarqube-server/60319)

<div class="topic-metadata">

**Author:** [@Andrzej\_Wisinski](https://community.sonarsource.com/u/Andrzej_Wisinski)\
**Replies:** 7\
**Last updated:** [August 5, 2022, 3:26pm UTC](https://community.sonarsource.com/t/problem-with-importing-salesforce-code-coverage-to-sonarqube-server/60319 "2022-08-05T15:26:49Z")

</div>

SonarQube Community Edition 8.9.7, CodeScan plugin 22.1.1, Azure DevOps agent with sonar-scanner installed Hello I’m trying to get code coverage results from my Salesforce org into SonarQube project. I’m using -Dsonar…

---

## [SonarCloud can scan SalesForce Lightning Components](https://community.sonarsource.com/t/sonarcloud-can-scan-salesforce-lightning-components/54491)

<div class="topic-metadata">

**Author:** [@Alexandre\_Gigleux](https://community.sonarsource.com/u/Alexandre_Gigleux)\
**Replies:** 0\
**Last updated:** [December 7, 2021, 1:26pm UTC](https://community.sonarsource.com/t/sonarcloud-can-scan-salesforce-lightning-components/54491 "2021-12-07T13:26:11Z")

</div>

Hello, This is to inform that now SonarCloud knows how to scan SalesForce Lightning Components in general and more precisely Aura Components or Web Components. SalesForce Lightning Components are made of JavaScript, CS…
