Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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:

ParameterDescription
SelectedFileThe full pathname of the selected file or folder - ${selected_resource_loc}
sourceEncodingThe sourcecodes code page
dlcThe OpenEdge installation directory
propathThe PROPATH required to analyze the source
databasesComma 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.

SettingDescription
NameThe name for the External Tools Run Configuration
BuildfileYou ANT script, based on above example
Base DirectoryThe sourcecode's project root
Arguments

-DSelectedFile=${selected_resource_loc}
-DsourceEncoding=iso8859-1
-Ddlc=/Progress/OpenEdge116_64
-Dpropath=.,src,Consultingwerk/Studio/ProdictDumpHack/src,OERA
-Ddatabases=../DB/build/SmartDB/smartdb.df,../DB/build/icfdb/icfdb.df,../DB/build/Sports2000/sports2000.df

Refresh resources upon completionChecked, Specific resources, select the .sonarlint directory in your project root folder, available after first run only
Common → Save asShared 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.

...