Skip to content

SonarQube Scanner for the JavaScript world

License

Notifications You must be signed in to change notification settings

SonarSource/sonar-scanner-npm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM module to run SonarQube Server and Cloud analyses

@sonar/scan makes it very easy to trigger SonarQube Server and Cloud analyses on a JavaScript code base, without needing to install any specific tool or (Java) runtime.

This module is analyzed on SonarQube Cloud.

Quality Gate Maintainability Reliability Security Releases npm version

This is the documentation for v4. If you are using v3, refer to the v3 documentation.

Installation

Prerequisite: Node v18+ (for v4 and above)

Prerequisite: Node v16+ (for v3, otherwise use sonarqube-scanner v2.9.1)

This package is available on npm as: @sonar/scan

To install the scanner globally and be able to run analyses on the command line:

npm install -g @sonar/scan

Getting Started

If you want to run an analysis without having to configure anything in the first place, simply run the sonar command. The following example assumes that you have installed SonarQube Server locally:

cd my-project
sonar

Documentation

For the extended information, please refer to its documentation.

License

@sonar/scan is licensed under the LGPL v3 License.

About

SonarQube Scanner for the JavaScript world

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 91.7%
  • JavaScript 7.3%
  • Other 1.0%