Versions Compared


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


Description / Features

The plugin enables analysis of JavaScript projects with SonarQubeThis batch gives you the ability to extract PL/SQL source code from Oracle Forms. You can then feed SonarQube with the extracted PL/SQL source code.


Run an Analysis with the SonarQube Runner (Recommended method)

To run an analysis of your JavaScript project, use the SonarQube Runner.

A sample project is available on GitHub that can be browsed or downloaded: /projects/languages/javascript/javascript-sonar-runner.

Run an Analysis with the other Analyzers

Maven and Ant can also be used to launch analysis on JavaScript projects.

Code Coverage

To display code coverage data:

  1. Prior to the SonarQube analysis, execute your unit tests and generate the LCOV report.
  2. Import this report while running the SonarQube analysis by setting the sonar.javascript.lcov.reportPath property to the path to the LCOV report. The path may be absolute or relative to the project base directory.

A sample project can be browsed or downloaded: /projects/languages/javascript/javascript-sonar-runner-lcov


See Metrics documentation page.

Extending Coding Rules using XPath

New coding rules can be added using XPath. See the related documentation.

To navigate the AST, download the SSLR JavaScript Toolkit.

Release Notes

Version 1.5

It is no longer possible to:

  • let SonarQube drive the execution of unit tests
  • import unit test execution reports

This extractor uses the Oracle JDAPI library that is included in the Oracle Developer Suite. Therefore, a full installation of the Oracle Developer Suite is required. Once installed, check that the environment is correctly set:

  • The "PATH" environment variable must contain the Oracle Developer Suite paths, for example: PATH=C:/OracleDevSuite/jdk/jre/bin/classic;C:/OracleDevSuite/jdk/jre/bin;C:/OracleDevSuite/jdk/jre/bin/client;C:/OracleDevSuite/jlib;C:/OracleDevSuite/bin;C:/oraclexe/app/oracle/product/10.2.0/server/bin
  • The ORACLE_HOME "environment variable" must contain the Oracle root path, for example: ORACLE_HOME=C:/oraclexe/app/oracle/product/10.2.0/server

Then execute the following command:

Code Block
set FORMS_PATH=C:\forms_project java -DinputDir=C:\forms_project -DoutputDir=C:\extracted_plsql -cp C:\path\to\sonar-forms-plsql-extractor-1.0-jar-with-dependencies.jar;C:\path\to\oracle\forms\java\frmdapi.jar org.sonar.oracleforms.plsql.PlSqlExtractor

The formsExtensions property is optional. It's a comma-separated list of the extensions of Oracle Forms files. By default value is 'fmb,mmb,olb,pll'. The output directory, as set by the property outputDir, must exist and is not clean up. Generated files override existing ones.