No Plugins; Monolithic

    sonarqube-scanner-node

    0.0.10 • Public • Published

    sonarqube-scanner

    sonarqube-scanner is npm package for sonar-scanner

    Installation

    yarn add sonarqube-scanner-node

    Usage

    This package allows you to use same command line parameters and properties file sonar-scanner allows.

    sonar-scanner-node can be added to node scripts as follows.

     "scripts": {
        "sonarqube": "sonarqube-scanner-node -Dsonar.login=<token>",
      }

    Download From Mirrors

    By default, SonarQube scanner binaries are downloaded from https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/. To use a custom mirror, use environment variable SONAR_SCANNER_BASE_URL and SONAR_SCANNER_CLI_VERSION.

        export SONAR_SCANNER_BASE_URL=https://npm.taobao.org/mirrors/sonar-scanner/
        export SONAR_SCANNER_CLI_VERSION=3.2.0.1227

    or (you can use cross-env for cross-platform)

        SONAR_SCANNER_BASE_URL=https://npm.taobao.org/mirrors/sonar-scanner/ SONAR_SCANNER_CLI_VERSION=3.2.0.1227 npm i

    or set it in your .npmrc / npm variables.

        sonar_scanner_base_url=https://npm.taobao.org/mirrors/sonar-scanner/
        sonar_scanner_cli_version=3.2.0.1227
    

    Install

    npm i sonarqube-scanner-node

    DownloadsWeekly Downloads

    895

    Version

    0.0.10

    License

    MIT

    Unpacked Size

    22.4 kB

    Total Files

    7

    Last publish

    Collaborators

    • mpolara