Skip to content

Property list

Gilles QUERRET edited this page Dec 15, 2017 · 34 revisions

The OpenEdge plugin for SonarQube can be configured through the following properties (on top of the standard SonarQube properties):

General

  • sonar.oe.propath: comma-separated list of PL or directories
  • sonar.oe.binaries: OpenEdge build directory (where rcode can be found)
  • sonar.oe.dlc: OpenEdge installation directory
  • sonar.oe.propath.dlc=true|false: append $DLC/gui, $DLC/tty and $DLC/src to the propath
  • sonar.oe.databases: comma-separated list of full DF files
  • sonar.oe.aliases: semicolon-separated list of entries, each entry being a comma-separated list of aliases (first entry is the db name)
  • sonar.oe.file.suffixes: control file extensions analyzed by the SonarQube scanner (default value: p,w,i,cls)
  • sonar.oe.include.suffixes: control include file extensions, with no rule execution (default value: i)
  • sonar.oe.coverage.profiler.dirs: comma-separated list of directories where profiler files are stored (usually the value of outputDir in Profiler node)
  • sonar.oe.backslash.escape=true|false: enable backslash as an escape character on Windows
  • sonar.oe.analytics=true|false: set to false to disable analytics (ping to http://analytics.rssw.eu)

AST and rules

  • sonar.oe.proparse.debug: generate HTML description of abstract syntax tree of each OpenEdge procedure. Files are generated in .proparse directory
  • sonar.oe.skipProparse: skip abstract syntax tree generation and rules execution on OpenEdge procedures and classes

Copy-paste detector

  • sonar.oe.cpd.annotations: comma-separated list of annotations telling the CPD engine to skip code blocks. Example : Progress.Lang.Generated,InitializeComponent
  • sonar.oe.cpd.skip_methods: comma-separated list of method names telling the CPD engine to entirely skip a method
  • sonar.oe.cpd.skip_procedures: comma-separated list of procedure and function names telling the CPD engine to entirely skip a procedure or function

The following methods are standard SonarQube properties

  • sonar.cpd.oe.minimumtokens and sonar.cpd.oe.minimumLines: a piece of code is considered duplicated as soon as there are at least 100 duplicated tokens in a row (overide with sonar.cpd.${language}.minimumTokens) spread on at least 10 lines of code (override with sonar.cpd.${language}.minimumLines).

XREF

  • sonar.oe.filter.invalidxref: turn on byte filtering on XREF files
  • sonar.oe.filter.invalidxref.bytes: comma-separated list of bytes to be filtered out of XREF files, such as 1-5,9,11, as OpenEdge can generate invalid XML files. A common example is ADM2 in which strings contains the 0x01 byte, which is directly copied in the XREF file. Default value is 1-4.

Clone this wiki locally