In this section

Introduction

Parasoft supports Apex by integrating with PMD, a static source code analyzer for Apex, Java, JavaScript, PL/SQL, and other languages. Visit the PMD project website for additional information.

The Parasoft PMD extension processes the PMD result file output from your open source static analysis tool, generates reports showing violations and severities for the code authors, and sends the data to Parasoft DTP. DTP presents the data in widgets, reports, and other interfaces that enable you to prioritize violations, place them into remediation workflows, and monitor progress toward improving the code quality. 

Requirements

Usage

  1. If you have not already done so, execute PMD to analyze your project and verify that a results file in XML format was created.
  2. Open a command prompt and navigate to the Multi-Language Pack installation directory.
  3. Execute the multilanguage-pack.bat or multilanguage-pack.sh script with the required parameters all on one line, e.g.:
multilanguage-pack.bat -tool pmd -results.file "d:\YourProject\pmd-results.xml" -source.dir "d:\Your Project\src"

Internal technical log files from the Multi-Language Pack execution are generated in the <INSTALL>/.mlp subdirectory.

Required Parameters

The following settings are required.

tool

This setting specifies the Parasoft extension to execute. Use -tool pmd to run the PMD extension.

results.file

This settings specifies the path to the PMD XML results file. 

source.dir

This parameter specifies the path to the source code of the project under test. This is used to collect source control metadata (e.g., authorship, last updated, etc.) for DTP reporting and processing.