Sonarqube on a Javascript Project

The Docker’s way:

Log Into SonarQube with username admin, password admin
Provide a token Generate a token Enter a name for your token Generate Use existing token The token is used to identify you wh

2. sonar-scanner NPM Module

package.json{
"name": "sonarqube-test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"scan": "sonar-scanner -Dsonar.host.url=<sonarServerUrl> - Dsonar.login=<yourTokenHere>"
},
"author": "",
"license": "ISC",
"devDependencies": {
"sonarqube-scanner": "^2.8.0"
}
}

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Using Firebase in a Vue App with Vuexfire — Updating and Removing Documents

How to Copy Text to a Clipboard Programmatically in JavaScript?

TypeScript Best Practices — Namespace, any, for-in and More

Declare and Use Variables in JavaScript

Building a Super Commuter Weather App for CLI

Vue 3 — Props Data Flow

Understanding HTTP server basics in Deno

Javascript ES6 — Exploring the New Built-In Methods

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Pooja Gee

Pooja Gee

More from Medium

JavaScript & MongoDB

A REST API WITH KOA

REST Full API

Javascript — For and For/in Vs For/each and For/of