Need help in uploading custom rules for SAP ABAP language in SonarQube

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    We are using 7.9.1 (build 27448) version of SonarQube.
  • what are you trying to achieve
    We are trying to upload new / customized rules in to SonarQube tool for SAP ABAP language however we are not aware of the process of how to do it. We are been provided a XML file which is supposed to be filled with the rules to be uploaded however we are not aware of how this can done.
  • what have you tried so far to achieve this
    We couldn’t progress further as we not aware of how the XML can be customized / edited to upload the rules for SAP ABAP language.

Hi,

Welcome to the community!

First, your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

xxx → 7.9.6 → 8.9.2 → 9.1 (last step optional)

You may find the Upgrade Guide and the LTS-to-LTS Upgrade Notes helpful. If you have questions about upgrading, feel free to open a new thread for that here.

Regarding your actual question, custom rules aren’t supported for ABAP. As indicated in the docs, you’ll need to write and execute these rules outside of SonarQube and output your results into the Generic Issue Reports format.

 
Ann