# \#apex

**URL:** https://community.sonarsource.com/tag/apex/131.md

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

---

## [New Groovy Rules and Rule Improvements From Community Feedback](https://community.sonarsource.com/t/new-groovy-rules-and-rule-improvements-from-community-feedback/188083)

<div class="topic-metadata">

**Author:** [@adam.wilson](https://community.sonarsource.com/u/adam.wilson)\
**Replies:** 0\
**Last updated:** [September 9, 2026, 11:10am UTC](https://community.sonarsource.com/t/new-groovy-rules-and-rule-improvements-from-community-feedback/188083 "2026-09-09T11:10:18Z")

</div>

Hi Sonar Community, Based on the community’s feedback, we’ve added 7 new rules for the Groovy analyzer and then improved rules for a variety of other languages. The new Groovy rules are aiming to bring Sonar in line wit…

---

## [New Rules for Apex](https://community.sonarsource.com/t/new-rules-for-apex/188082)

<div class="topic-metadata">

**Author:** [@adam.wilson](https://community.sonarsource.com/u/adam.wilson)\
**Replies:** 0\
**Last updated:** [September 9, 2026, 10:58am UTC](https://community.sonarsource.com/t/new-rules-for-apex/188082 "2026-09-09T10:58:07Z")

</div>

Hi Apex Developers, We’ve released 3 new rules to SonarQube Cloud, and coming to SonarQube Server 2026.5, to help you with your development. The rules are: Rule S9280: Redundant “file.path\\(\\)” calls should not be use…

---

## [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…

---

## [New Apex rules focusing on Salesforce core concepts](https://community.sonarsource.com/t/new-apex-rules-focusing-on-salesforce-core-concepts/14033)

<div class="topic-metadata">

**Author:** [@Nicolas\_Harraudeau](https://community.sonarsource.com/u/Nicolas_Harraudeau)\
**Replies:** 1\
**Last updated:** [April 8, 2026, 10:11am UTC](https://community.sonarsource.com/t/new-apex-rules-focusing-on-salesforce-core-concepts/14033 "2026-04-08T10:11:54Z")

</div>

Hi Apex developers, We are excited to announce the release of a new set of Apex rules focusing on the core concepts of Salesforce: Security via access control S5377: Sharing level should be specified in Apex Classes…

---

## [New Apex Rules and Performance Boost on SonarQube Cloud](https://community.sonarsource.com/t/new-apex-rules-and-performance-boost-on-sonarqube-cloud/178771)

<div class="topic-metadata">

**Author:** [@denis.troller](https://community.sonarsource.com/u/denis.troller)\
**Replies:** 0\
**Last updated:** [March 3, 2026, 3:27pm UTC](https://community.sonarsource.com/t/new-apex-rules-and-performance-boost-on-sonarqube-cloud/178771 "2026-03-03T15:27:44Z")

</div>

We are excited to announce a significant update for Apex language analysis on SonarQube Cloud, bringing a fresh set of rules to enhance code quality and security, alongside a nice performance improvement for existing che…

---

## [Performance boost for Ruby and Apex rules](https://community.sonarsource.com/t/performance-boost-for-ruby-and-apex-rules/152996)

<div class="topic-metadata">

**Author:** [@denis.troller](https://community.sonarsource.com/u/denis.troller)\
**Replies:** 0\
**Last updated:** [November 25, 2025, 3:38pm UTC](https://community.sonarsource.com/t/performance-boost-for-ruby-and-apex-rules/152996 "2025-11-25T15:38:22Z")

</div>

Hi there, Some of you reported that the Ruby analysis was taking a large amount of time after our release of 33 new rules in October. We first corrected an issue in PR analysis that alleviated the problem i that context…

---

## [New rules for Apex](https://community.sonarsource.com/t/new-rules-for-apex/151642)

<div class="topic-metadata">

**Author:** [@denis.troller](https://community.sonarsource.com/u/denis.troller)\
**Replies:** 0\
**Last updated:** [October 30, 2025, 5:11pm UTC](https://community.sonarsource.com/t/new-rules-for-apex/151642 "2025-10-30T17:11:30Z")

</div>

Hi there, we just released an update for all our fellow Apex developers. We added 41 new rules for Apex (bringing the total number of rules to 97), to help Salesforce developers in their day to day tasks, 39 of those ar…

---

## [Sonarqube for IDE in intelliJ](https://community.sonarsource.com/t/sonarqube-for-ide-in-intellij/139552)

<div class="topic-metadata">

**Author:** [@Dakshin\_Ramamoorthy](https://community.sonarsource.com/u/Dakshin_Ramamoorthy)\
**Replies:** 8\
**Last updated:** [October 27, 2025, 5:25pm UTC](https://community.sonarsource.com/t/sonarqube-for-ide-in-intellij/139552 "2025-10-27T17:25:25Z")

</div>

Please provide Operating system: Windows 11 SonarQube for IntelliJ plugin version: 10.21.0.81149 IntelliJ version: 2023.2.8 Programming language you’re coding in: Apex, JS Is connected mode used: Yes SonarQube Cloud, …

---

## [How can I create custom rules for Apex in Sonarqube](https://community.sonarsource.com/t/how-can-i-create-custom-rules-for-apex-in-sonarqube/109868)

<div class="topic-metadata">

**Author:** [@Yadhu](https://community.sonarsource.com/u/Yadhu)\
**Replies:** 3\
**Last updated:** [July 7, 2025, 12:07pm UTC](https://community.sonarsource.com/t/how-can-i-create-custom-rules-for-apex-in-sonarqube/109868 "2025-07-07T12:07:31Z")

</div>

Is it possible to create custom rules for Apex in SonarQube? If so, please link any documentation which can be used for the same.

---

## [Support for Integrating Sonarqube with our Salesforce Pipeline](https://community.sonarsource.com/t/support-for-integrating-sonarqube-with-our-salesforce-pipeline/134346)

<div class="topic-metadata">

**Author:** [@Ranita\_Sharma](https://community.sonarsource.com/u/Ranita_Sharma)\
**Replies:** 1\
**Last updated:** [February 3, 2025, 3:52pm UTC](https://community.sonarsource.com/t/support-for-integrating-sonarqube-with-our-salesforce-pipeline/134346 "2025-02-03T15:52:23Z")

</div>

Hi Sonarqube , We are currently exploring the integration of SonarQube with our Salesforce deployment pipelines to generate code coverage reports. However, we would like to use SonarQube exclusively for code coverage an…

---

## [Unable to calculate coverage for Pull Request in Apex](https://community.sonarsource.com/t/unable-to-calculate-coverage-for-pull-request-in-apex/131485)

<div class="topic-metadata">

**Author:** [@Lysander](https://community.sonarsource.com/u/Lysander)\
**Replies:** 5\
**Last updated:** [January 21, 2025, 11:33am UTC](https://community.sonarsource.com/t/unable-to-calculate-coverage-for-pull-request-in-apex/131485 "2025-01-21T11:33:37Z")

</div>

Hey team I am creating a follow-up to this topic, since noone replied then and I have exactly same case: https://community.sonarsource.com/t/getting-error-importing-coverage-file-from-sfdx-forcedeploy-into-sonarcloud/75…

---

## [Unable to extract plugin dependancy meta-inf/lib/force-apex-api-52.0.0.jar](https://community.sonarsource.com/t/unable-to-extract-plugin-dependancy-meta-inf-lib-force-apex-api-52-0-0-jar/132030)

<div class="topic-metadata">

**Author:** [@Rajashekar](https://community.sonarsource.com/u/Rajashekar)\
**Replies:** 3\
**Last updated:** [January 2, 2025, 9:39am UTC](https://community.sonarsource.com/t/unable-to-extract-plugin-dependancy-meta-inf-lib-force-apex-api-52-0-0-jar/132030 "2025-01-02T09:39:28Z")

</div>

Hi team below is the error which i’m getting while configuring a plugin in intellij. this plugin related to a static code analysis of apex-code, uses sonarqube 9.9 as base. please help me to sort this. Operating system…

---

## [Salesforce Apex Code Coverage is not being uploaded to SonarCloud](https://community.sonarsource.com/t/salesforce-apex-code-coverage-is-not-being-uploaded-to-sonarcloud/125506)

<div class="topic-metadata">

**Author:** [@amitastreait](https://community.sonarsource.com/u/amitastreait)\
**Replies:** 1\
**Last updated:** [September 23, 2024, 10:04am UTC](https://community.sonarsource.com/t/salesforce-apex-code-coverage-is-not-being-uploaded-to-sonarcloud/125506 "2024-09-23T10:04:12Z")

</div>

Hi All, I am integrating the Sonarcloud for the public github repository and noticed that the Code Coverage is not being uploaded to SonarCloud UI. Any help will be appreciated. ALM used (GitHub) CI system used (Gith…

---

## [Does Sonarlint in connected mode support scanning of Salesforce Apex in IDE Webstorm?](https://community.sonarsource.com/t/does-sonarlint-in-connected-mode-support-scanning-of-salesforce-apex-in-ide-webstorm/103994)

<div class="topic-metadata">

**Author:** [@boehlerconsulting](https://community.sonarsource.com/u/boehlerconsulting)\
**Replies:** 4\
**Last updated:** [July 17, 2024, 3:32am UTC](https://community.sonarsource.com/t/does-sonarlint-in-connected-mode-support-scanning-of-salesforce-apex-in-ide-webstorm/103994 "2024-07-17T03:32:49Z")

</div>

Hello, I am using Webstorm and looking to scan Salesforce Apex Class files. Sonarlint is connected to Sonarcloud. Currently scan is only running for js files. My question is: Does Sonarlint in connected mode support s…

---

## [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…

---

## [Sonarcloud feature request Apex Null Coalescing Operator](https://community.sonarsource.com/t/sonarcloud-feature-request-apex-null-coalescing-operator/112468)

<div class="topic-metadata">

**Author:** [@Theodoor\_van\_Donge](https://community.sonarsource.com/u/Theodoor_van_Donge)\
**Replies:** 2\
**Last updated:** [April 23, 2024, 8:51am UTC](https://community.sonarsource.com/t/sonarcloud-feature-request-apex-null-coalescing-operator/112468 "2024-04-23T08:51:38Z")

</div>

We are using SonarCloud, but are since the introduction of the Apex Null Coalescing Operator feature are facing errors everyday in our scans. Errors: ERROR: Unable to parse file: file:///home/vsts/work/1/s/force-app/ma…

---

## [Support for APEX Oracle](https://community.sonarsource.com/t/support-for-apex-oracle/112604)

<div class="topic-metadata">

**Author:** [@franciscocarvajal](https://community.sonarsource.com/u/franciscocarvajal)\
**Replies:** 1\
**Last updated:** [April 4, 2024, 8:33am UTC](https://community.sonarsource.com/t/support-for-apex-oracle/112604 "2024-04-04T08:33:27Z")

</div>

Version: SonarQube EE 9.9 LTS SonarScanner CLI 5.0.1 ZIP installation Try to analyze Oracle APEX file I would like to know if the SonarQube EE version offers support for analyzing APEX Oracle code. APEX Oracle is base…

---

## [How to Enable sonarcloud for salesforce apex code analysis from Azure Devops](https://community.sonarsource.com/t/how-to-enable-sonarcloud-for-salesforce-apex-code-analysis-from-azure-devops/111235)

<div class="topic-metadata">

**Author:** [@Ravindra\_Reddy\_I](https://community.sonarsource.com/u/Ravindra_Reddy_I)\
**Replies:** 1\
**Last updated:** [March 15, 2024, 7:36am UTC](https://community.sonarsource.com/t/how-to-enable-sonarcloud-for-salesforce-apex-code-analysis-from-azure-devops/111235 "2024-03-15T07:36:36Z")

</div>

Hello Team, We’re trying to build a CI/CD pipeline for Salesforce Apex code from Azure Devops, in that we’re trying to use sonarcloud job for code quality checks, Could you please kindly help us in how to enable apex la…

---

## [Condition coverage for apex code (Salesforce)](https://community.sonarsource.com/t/condition-coverage-for-apex-code-salesforce/109402)

<div class="topic-metadata">

**Author:** [@Sabrac](https://community.sonarsource.com/u/Sabrac)\
**Replies:** 1\
**Last updated:** [February 20, 2024, 7:34am UTC](https://community.sonarsource.com/t/condition-coverage-for-apex-code-salesforce/109402 "2024-02-20T07:34:41Z")

</div>

How can i analyze apex code for condition coverage in sonarqube report? Its always show zero in Conditions to Cover (Measures) Currently im using SonarQube enterprise version 9.9.2 (build 77730)

---

## [SonaLint for VS Code does not show custom Apex issues](https://community.sonarsource.com/t/sonalint-for-vs-code-does-not-show-custom-apex-issues/95042)

<div class="topic-metadata">

**Author:** [@rchavan](https://community.sonarsource.com/u/rchavan)\
**Replies:** 1\
**Last updated:** [July 4, 2023, 9:37am UTC](https://community.sonarsource.com/t/sonalint-for-vs-code-does-not-show-custom-apex-issues/95042 "2023-07-04T09:37:15Z")

</div>

Please provide Operating system: Windows SonarLint plugin version: v3.13.0 Programming language you’re coding in: APEX Is connected mode used: Yes Connected to SonarCloud or SonarQube (and which version): Conntected t…

---

## [Parse Error while running Sonar Scan in ADO pipeline](https://community.sonarsource.com/t/parse-error-while-running-sonar-scan-in-ado-pipeline/80729)

<div class="topic-metadata">

**Author:** [@nareshk](https://community.sonarsource.com/u/nareshk)\
**Replies:** 6\
**Last updated:** [February 16, 2023, 12:14pm UTC](https://community.sonarsource.com/t/parse-error-while-running-sonar-scan-in-ado-pipeline/80729 "2023-02-16T12:14:58Z")

</div>

Hello, When ADO pipeline runs SonarQube scan for salesforce APEX code, it displays several parse errors as below. Is this due to SQ unable to parse .flow files? ##\[error\]ERROR: Unable to parse file: file:///D:/a/1/s/fl…

---

## [Apex coverage number doesn't match Salesforce's numbers](https://community.sonarsource.com/t/apex-coverage-number-doesnt-match-salesforces-numbers/78633)

<div class="topic-metadata">

**Author:** [@NarangAshish](https://community.sonarsource.com/u/NarangAshish)\
**Replies:** 3\
**Last updated:** [December 9, 2022, 6:55pm UTC](https://community.sonarsource.com/t/apex-coverage-number-doesnt-match-salesforces-numbers/78633 "2022-12-09T18:55:37Z")

</div>

For Apex code, test coverage in Salesforce and SonarQube are not matching eventhough number of lines are matching, but percentage is not correct. We are getting only 28% whereas its 75% covered. Total number of lines ar…

---

## [Apex Code-Coverage: Sonar values differ from Salesforce](https://community.sonarsource.com/t/apex-code-coverage-sonar-values-differ-from-salesforce/12761)

<div class="topic-metadata">

**Author:** [@SuChuDom](https://community.sonarsource.com/u/SuChuDom)\
**Replies:** 8\
**Last updated:** [December 8, 2022, 2:12am UTC](https://community.sonarsource.com/t/apex-code-coverage-sonar-values-differ-from-salesforce/12761 "2022-12-08T02:12:43Z")

</div>

To whom it may concern: We’re running static code analysis on two salesforce projects (apex code) through Azure pipelines. Sonar Cube publishes the code coverage results as being 47% for one project, and 50% for the oth…

---

## [\[Coverage & Test Data\] Generate Reports for Apex, C/C++, Objective-C, Go, JS/TS and Python](https://community.sonarsource.com/t/coverage-test-data-generate-reports-for-apex-c-c-objective-c-go-js-ts-and-python/9687)

<div class="topic-metadata">

**Author:** [@Alexandre\_Gigleux](https://community.sonarsource.com/u/Alexandre_Gigleux)\
**Replies:** 3\
**Last updated:** [December 2, 2021, 9:33am UTC](https://community.sonarsource.com/t/coverage-test-data-generate-reports-for-apex-c-c-objective-c-go-js-ts-and-python/9687 "2021-12-02T09:33:32Z")

</div>

Hello, Here is a quick guide on how to generate coverage and test data reports for several languages. For other languages or to know how to integrate these reports into SonarQube have a look at Overview | SonarQube Serv…

---

## [Getting error importing coverage file from sfdx force:source:deploy into SonarCloud](https://community.sonarsource.com/t/getting-error-importing-coverage-file-from-sfdx-forcedeploy-into-sonarcloud/75855)

<div class="topic-metadata">

**Author:** [@Peter\_Caitens](https://community.sonarsource.com/u/Peter_Caitens)\
**Replies:** 2\
**Last updated:** [November 15, 2022, 3:47am UTC](https://community.sonarsource.com/t/getting-error-importing-coverage-file-from-sfdx-forcedeploy-into-sonarcloud/75855 "2022-11-15T03:47:07Z")

</div>

I have a Salesforce pipeline developed in Github Actions. I run the following steps in the pipeline to generate the report: - name: Check changes between branches into Salesforce Org run: | sfdx …

---

## [Sonar free edition can scan Apex language?](https://community.sonarsource.com/t/sonar-free-edition-can-scan-apex-language/75712)

<div class="topic-metadata">

**Author:** [@DuongVH](https://community.sonarsource.com/u/DuongVH)\
**Replies:** 2\
**Last updated:** [November 10, 2022, 2:28am UTC](https://community.sonarsource.com/t/sonar-free-edition-can-scan-apex-language/75712 "2022-11-10T02:28:10Z")

</div>

Hi Team. I using Sonar free edition. I need scan source code used Apex language. But I read in document that “Apex analysis is available as part of the Enterprise Edition and above 8.0 version” I’m confuse about that…

---

## [SuppressWarning is not being honoured in Apex](https://community.sonarsource.com/t/suppresswarning-is-not-being-honoured-in-apex/74684)

<div class="topic-metadata">

**Author:** [@lchnnl](https://community.sonarsource.com/u/lchnnl)\
**Replies:** 1\
**Last updated:** [October 19, 2022, 2:20pm UTC](https://community.sonarsource.com/t/suppresswarning-is-not-being-honoured-in-apex/74684 "2022-10-19T14:20:37Z")

</div>

SonarQube Enterprise Edition Version 9.6 (build 59041) We are developing in Apex. There are some parts in our code for which we want to surpress the warnings. We have used the @SuppressWarnings annotation, but without …

---

## [ERROR: Unable to parse file: file Parse error at position 1:0](https://community.sonarsource.com/t/error-unable-to-parse-file-file-parse-error-at-position-1-0/73790)

<div class="topic-metadata">

**Author:** [@Omkar\_Jadhav](https://community.sonarsource.com/u/Omkar_Jadhav)\
**Replies:** 3\
**Last updated:** [October 3, 2022, 1:09pm UTC](https://community.sonarsource.com/t/error-unable-to-parse-file-file-parse-error-at-position-1-0/73790 "2022-10-03T13:09:16Z")

</div>

Must-share information (formatted with Markdown): which versions are you using ( sonar-scanner-4.1.0.1829) what are you trying to achieve (parse apex code) what have you tried so far to achieve this (not tried to chang…

---

## [Issue in SonarCloud Apex/Salesforce integration for code analysis](https://community.sonarsource.com/t/issue-in-sonarcloud-apex-salesforce-integration-for-code-analysis/69055)

<div class="topic-metadata">

**Author:** [@Manasi\_Joshi](https://community.sonarsource.com/u/Manasi_Joshi)\
**Replies:** 4\
**Last updated:** [August 10, 2022, 2:39pm UTC](https://community.sonarsource.com/t/issue-in-sonarcloud-apex-salesforce-integration-for-code-analysis/69055 "2022-08-10T14:39:07Z")

</div>

Hi, I am using SonarCloud for Apex/salesforce code analysis. I have created a Bitbucket pipeline to execute checks from Sonar Cloud. My .yml File is as below: clone: depth: full # SonarCloud scanner needs the fu…

[Next page](https://community.sonarsource.com/tag/apex/131.md?match_all_tags=true&page=1&tags%5B%5D=apex)
