Last active
August 4, 2023 14:31
-
-
Save maneeshaindrachapa/712e9cdaa0cc3773c6bbc7883495bea3 to your computer and use it in GitHub Desktop.
sonarqube-scanner.js - For SonarQube
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const scanner = require("sonarqube-scanner"); | |
scanner( | |
{ | |
serverUrl: "http://localhost:9000", | |
options: { | |
'sonar.sources': './src', | |
'sonar.exclusions': '**/*.spec.js,**/*.test.js,**/*.test.jsx,**/*.spec.jsx,**/*.spec.tsx,**/*.test.tsx', | |
'sonar.sourceEncoding': 'UTF-8', | |
'sonar.tests': './src', | |
'sonar.test.inclusions': './src/**/*.spec.js,./src/**/*.spec.jsx,./src/**/*.test.js,./src/**/*.test.jsx,.src/**/*.spec.tsx,./src**/*.test.tsx', | |
'sonar.javascript.lcov.reportPaths': './coverage/lcov.info', | |
'sonar.testExecutions': './reports/sonar-report.xml', | |
}, | |
}, | |
() => process.exit() | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment