In this section
Introduction
Parasoft supports the Go language by integrating with GoReporter, an open source tool for Go language projects that concurrently runs linters for static analysis, unit testing, and code review. GoReporter normalizes the linters' output into a single quality report. Refer to the GoReporter documentation for additional information: https://github.com/360EntSecGroup-Skylar/goreporter
The Parasoft GoReporter Extension processes the result file output from GoReporter, generate reports showing static analysis 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
- GoReporter version 3.0.2 is currently supported.
- Supported operating systems: Windows, Linux
- GoReporter should be installed and successfully running analysis
- GoReporter should be producing reports in JSON format. Use the
-f json
parameter during GoReporter execution to specify JSON output. Example:goreporter -p C:\sample\sampleProjectFolder -f json
Usage
- If you have not already done so, execute GoReporter and verify that the results are output to a file in JSON format.
- Open a command prompt and navigate to the Multi-Language Pack installation directory.
- Execute the multilanguage-pack.bat or multilanguage-pack.sh script using the required parameters all one line, e.g.:
multilanguage-pack.bat -tool goreporter -results.file "C:\sample\goreporter-results.json" -source.dir "C:\sample\sampleProjectFolder"
Required Parameters
Internal technical log files from the Multi-Language Pack execution are generated in the <INSTALL>/.mlp subdirectory.
tool
This setting specifies the Parasoft extension to execute. Use -tool
goreporter
to run the GoReporter extension.
results.file
Specifies the path to the GoReporter analysis results file.
source.dir
Specifies the path to the folder containing the analyzed GoReporter source code. This is used to collect source control metadata (e.g., authorship, last updated, etc.) for DTP reporting and processing.