Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
sonar-scanner.js 988 B
/** *******************************************************************
* Copyright (c) 2024 Eclipse Foundation.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
**********************************************************************/
const scanner = require('sonarqube-scanner');

// Holds all configs for scanning this project with SonarCloud and SonarQube
scanner(
  {
    serverUrl: process.env.SONAR_HOST,
    token: process.env.SONAR_TOKEN,
    options: {
      'sonar.projectName': 'Eclipse VC-Tools',
      'sonar.organization': 'eclipse-foundation-it',
      'sonar.projectKey': 'eclipsefdn-vc-tools',
      'sonar.projectVersion': '1.0.0-BETA',
      'sonar.sources': 'src',
      'sonar.tests': 'test',
      'sonar.javascript.lcov.reportPaths': './coverage/lcov.info'
    },
  },
  () => process.exit(),
);