-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Pedro Ladaria
committed
Oct 3, 2023
1 parent
98e98ad
commit 5f22c76
Showing
6 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
projectKey=mistica-web | ||
serverUrl=http://epg-sonar.hi.inet:9000 | ||
serverVersion=10.2.0.77647 | ||
dashboardUrl=http://epg-sonar.hi.inet:9000/dashboard?id=mistica-web | ||
ceTaskId=AYr10eumyF5njyJkf40j | ||
ceTaskUrl=http://epg-sonar.hi.inet:9000/api/ce/task?id=AYr10eumyF5njyJkf40j |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
# Change working directory to the root of the project | ||
cd "$(dirname "$0")"/.. | ||
|
||
# Extract version from package.json | ||
SONAR_PROJECT_VERSION=`node -e "console.log(require('./package.json').version)"` | ||
|
||
echo "Running SonarQube analysis for mistica-web..." | ||
docker run \ | ||
--rm \ | ||
-e SONAR_TOKEN="${SONAR_TOKEN}" \ | ||
-e SONAR_PROJECT_VERSION="${SONAR_PROJECT_VERSION}" \ | ||
-v "${PWD}:/usr/src" \ | ||
sonarsource/sonar-scanner-cli |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
sonar.projectVersion=${env.SONAR_PROJECT_VERSION} | ||
|
||
# must be unique in a given SonarQube instance | ||
sonar.projectKey=mistica-web | ||
|
||
sonar.host.url=http://epg-sonar.hi.inet:9000 | ||
|
||
sonar.exclusions=\ | ||
**/__screenshot_tests__/**,\ | ||
**/__acceptance_tests__/**,\ | ||
**/__stories__/**,\ | ||
**/__private_stories__/**,\ | ||
**/__tests__/**,\ | ||
**/__type_tests__/**,\ | ||
**/.yarn/**,\ | ||
**/codemods/**,\ | ||
**/css/**,\ | ||
**/dist-es/**,\ | ||
**/dist/**,\ | ||
**/examples/**,\ | ||
**/node_modules/**,\ | ||
**/packages/**,\ | ||
**/playroom/**,\ | ||
**/public/**,\ | ||
**/reports/**,\ | ||
**/scripts/**,\ | ||
src/generated/**,\ | ||
src/test-utils/** | ||
|
||
# https://docs.sonarsource.com/sonarqube/latest/analyzing-source-code/test-coverage/test-coverage-parameters/#sonarjavascriptlcovreportpaths | ||
sonar.typescript.lcov.reportPaths=./reports/coverage/lcov.info | ||
|
||
sonar.test.inclusions=\ | ||
**/__tests__/**/*-test.tsx,\ | ||
**/__tests__/**/*-test.ts,\ | ||
**/__tests__/**/*-test.js | ||
|
||
# defaults to project key | ||
sonar.projectName=mistica-web | ||
|
||
# Path is relative to the sonar-project.properties file. Defaults to . | ||
sonar.sources=. | ||
|
||
# Encoding of the source code. Default is default system encoding | ||
sonar.sourceEncoding=UTF-8 | ||
|
||
# https://docs.sonarsource.com/sonarqube/latest/analyzing-source-code/scm-integration/ | ||
sonar.scm.disabled=True |
This file contains 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