Skip to content

Property list

Gilles QUERRET edited this page Feb 25, 2020 · 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: comma-separated list of build directories (where rcode can be found)
  • sonar.oe.dotpct: comma-separated list of .pct directories (if using a different directory in PCTCompile)
  • 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)
  • sonar.oe.proparse.error.stacktrace: set to false to disable full stack trace in case of parser error
  • sonar.oe.xcode.skip: set to false to stop the parser when it reaches an xcode'd file. Default behavior converts xcode'd file to a single space character.

Preprocessor

  • sonar.oe.preprocessor.opsys: can be set to UNIX or WINDOWS. Default value depends on your OS.
  • sonar.oe.preprocessor.window-system: can be set to any value. Default value is MS-WIN95 on Windows, TTY on UNIX.
  • sonar.oe.preprocessor.proversion: can be set to any value. Default value is 11.7.
  • sonar.oe.preprocessor.batch-mode: can be set to true or false. Default value is true.
  • sonar.oe.preprocessor.process-architecture: can be set to any value. Default value is 64.

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
  • sonar.oe.proparse.recover: set to true to allow token injection / deletion when parsing code

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
  • sonar.oe.simplecpd: set to true to use a simpler CPD engine, which doesn't require access to the syntax tree. Only relevant when the majority of the codebase can't be compiled with standard propath and/or database connections. Requires property sonar.oe.skipProparse to be set to true. Available since version 2.7.

The following properties 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 (override 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