In this section
Introduction
Parasoft supports Scala by integrating with Scalastyle, an open source tool that performs static analysis on Scala code. Visit the Scalastyle project website for additional information.
The Parasoft Scalastyle 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
- Scalastyle version 1.0.0 is currently supported.
- Scalastyle should be installed and successfully running analysis.
Usage
- If you have not already done so, execute Scalastyle to analyze your project and verify that a results file was created.
- 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 scalastyle -results.file "d:\Scalastyle\report.xml" -source.dir "d:\scalastyle\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
scalastyle
to run the Scalastyle extension.
results.file
The path to the Scalastyle XML results file.
source.dir
Specifies the path to the Scala source code of the project that was analyzed. This is used to collect source control metadata (e.g., authorship, last updated, etc.) for DTP reporting and processing.