RPG
Language-specific information about the way that SonarQube Cloud supports analysis of RPG.
This language is available only in the SonarQube Cloud Enterprise plan. See the Subscription plans page for more details.
Language specific properties
To discover and update the RPG-specific properties, navigate in SonarQube Cloud to Your Project > Administration > General Settings > Languages > RPG. See the Analysis parameters page for more information about specific properties.
Source code extraction
In order to analyze your source code with SonarQube Cloud you need to first extract it onto a file system. You can use your own tool or an open-source tool; Sonar does not provide any connectors or source code extraction tools.
RPG source format
Depending on your extraction process, your RPG source files may include an extra margin on the left of the 80 columns used for code. This margin is in addition to the standard margin which takes up characters 1-5 in the 80-character source format (when "fully free-form" is not used). The extra margin is controlled through the sonar.rpg.leftMarginWidth
property. By default, it is set to 12, which is the size of the margin in an IBM "source physical file". If your RPG source files do not contain such a margin, you should set sonar.rpg.leftMarginWidth
to 0
.
You can find an example file illustrating a 12-character margin in our sample project.
You should also make sure to set sonar.sourceEncoding
to the appropriate encoding. Please check the Analysis parameters page for details.
Free-Form Support
Free-form is supported for all kinds of specifications and SQL statements that exist in IBM i 7.4. Fully free-form code (starting with **FREE
) is also supported.
Last updated
Was this helpful?