Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including eslint-formatter-sonarqube with all npm packages installed. Try it out:

var eslintFormatterSonarqube = require("eslint-formatter-sonarqube")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

eslint-formatter-sonarqube v1.0.0

eslint formatter to output JSON in a format compatible with sonarqube 7.4's new external analyzer feature

eslint-formatter-sonarqube

This formatter aggregates the ESLint results into JSON format that can be imported into your sonarqube 7.4+ projects. After installing this module, configure your sonar-project.properties file to add the parameter sonar.externalIssuesReportPaths with one or more paths to reports that will be imported when a scan is run.

Installation & Usage

To Install

npm install eslint-formatter-sonarqube --save-dev

Once installed, pass the module as the formatter parameter when using eslint:

eslint -f node_modules/eslint-formatter-sonarqube -o ./sonar/result.json  ./  

Reference

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free