In this section:
Introduction
Parasoft supports the JavaScript and TypeScript languages by integrating with ESLint, an open-source tool that performs static analysis on JavaScript and TypeScript code and reports issues related to documentation, readability, and maintainability. Visit the ESLint website for additional information.
The Parasoft ESLint extension processes the 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
- ESLint version 9.8.0 is currently supported.
- ESLint should be installed and successfully running analysis.
- ESLint should be producing XML reports in Checkstyle format (e.g., using the
--format checkstyle
setting). See the ESLint documentation for details. - ESLint can be run also on different extensions (e.g., using the
--ext .jsm,.js
setting). See the ESLint documentation for details.
Usage
- If you have not already done so, execute ESLint and verify that the results are output to a file in Checkstyle format.
- Open a command prompt and navigate to the Multi-Language Pack installation directory.
Execute the multilanguage-pack.bat or multilanguage-pack.sh script with the required parameters all on one line, e.g.:
multilanguage-pack.bat -tool ESLint -results.file "c:\sample\eslint-results.xml" -source.dir "C:\sample\sampleProjectFolder"
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 ESLint
to run the ESLint extension.
results
The path to the ESLint XML results file.
source.dir
Specifies the path to the JavaScript/TypeScript source code. This is used to collect source control metadata (e.g., authorship, last updated, etc.) for DTP reporting and processing.