Commit 9cfa795a authored by Carsten Heidmann's avatar Carsten Heidmann
Browse files

Adjust settings for Sonar analysis so that they are the same in all projects

Motivation:

The naming for the project key and name were slightly different in the POM and in the Sonar configuration. In order to be consistent, this should be changed.

Modifications:

* change sonar project name and key to the values from POM
* add Sonar output directory to .gitignore

Result

The naming is consistent.

Target: master

Request:

Acked-by:

Pull-request: !2
parent c0a6a683
Pipeline #34550 passed with stage
in 1 minute and 50 seconds
const sonarqubeScanner = require('sonarqube-scanner'); // eslint-disable-line import/no-extraneous-dependencies
sonarqubeScanner(
{
serverUrl: 'https://sonar.desy.de',
token: process.env.SONAR_AUTH_TOKEN,
options: {
'sonar.projectKey': 'de.helmholtz.marketplace.hifis-marketplace',
'sonar.projectName': 'Helmholtz Marketplace Web App',
'sonar.sources': 'src',
'sonar.projectVersion': '0.0.1',
'sonar.language': 'js',
'sonar.sourceEncoding': 'UTF-8',
'sonar.exclusions': 'src/**/*.spec.js',
'sonar.test.inclusions': 'src/**/*.spec.js',
'sonar.coverage.exclusions':
'src/**/*.spec.js,src/**/*.mock.js,node_modules/*,coverage/lcov-report/*',
'sonar.qualitygate.wait': 'true',
'sonar.qualitygate.timeout': '30'
{
serverUrl: 'https://sonar.desy.de',
token: process.env.SONAR_AUTH_TOKEN,
options: {
'sonar.projectKey':
'de.helmholtz.marketplace:helmholtz-marketplace-webapp',
'sonar.projectName': 'Helmholtz Marketplace WebApp',
'sonar.sources': 'src',
'sonar.projectVersion': '0.0.1',
'sonar.language': 'js',
'sonar.sourceEncoding': 'UTF-8',
'sonar.exclusions': 'src/**/*.spec.js',
'sonar.test.inclusions': 'src/**/*.spec.js',
'sonar.coverage.exclusions':
'src/**/*.spec.js,src/**/*.mock.js,node_modules/*,coverage/lcov-report/*',
'sonar.qualitygate.wait': 'true',
'sonar.qualitygate.timeout': '30',
'sonar.working.directory': 'target/.scannerwork',
},
},
},
() => process.exit(),
() => process.exit()
);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment