...
Configuration
sonarlint.p
The procedure Consultingwerk/Studio/SonarLintLauncher/sonarlint.p supports execution of the SonarLint CLI for files currently selected in Progress Developer Studio (a single file or a complete folder with all sub-folders).
The procedure is intended to be launched from a PCTRun task as it's retrieving it's parameters from PCTRun. Supported parameters:
Parameter | Description |
---|---|
SelectedFile | The full pathname of the selected file or folder - ${selected_resource_loc} |
sourceEncoding | The sourcecodes code page |
dlc | The OpenEdge installation directory |
propath | The PROPATH required to analyze the source |
databases | Comma delimited list of .df files required for analyzing the sourcecoude |
ANT script
An ANT script is required to execute the procedure sonarlint.p via PCTRun.
...
To create the launch configuration, open the External Tools Configurations dialog and create a new ANT Build configuration with the following settings.
Setting | Description |
---|---|
Name | The name for the External Tools Run Configuration |
Buildfile | You ANT script, based on above example |
Base Directory | The sourcecode's project root |
Arguments | -DSelectedFile=${selected_resource_loc} |
Refresh resources upon completion | Checked, Specific resources, select the .sonarlint directory in your project root folder, available after first run only |
Common → Save as | Shared File, specify a file name to share this configuration with team mates |
Executing the ANT script
To execute the ANT script from Progress Developer Studio, select the resource to analyse (a single sourcecode file or a whole folder in the resource view.
...