Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sonarcloud properties #107

Merged
merged 2 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ jobs:
-Dsonar.organization=mtes-mct
-Dsonar.projectKey=MTES-MCT_rapportnav2
-Dsonar.verbose=true
# -Dsonar.sources=lib/
# -Dsonar.test.exclusions=tests/**
# -Dsonar.tests=tests/
-Dsonar.sources=./src/main
-Dsonar.tests=./src/test/kotlin

frontend:
name: Frontend
Expand All @@ -85,5 +84,6 @@ jobs:
args:
-Dsonar.projectKey=MTES-MCT_rapportnav2
-Dsonar.organization=mtes-mct
-Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info


15 changes: 13 additions & 2 deletions .sonarcloud.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,21 @@ sonar.projectKey=MTES-MCT_rapportnav2
sonar.host.url=https://sonarcloud.io
sonar.java.version=17
sonar.scm.provider=git
sonar.sources=./backend/src/main,./frontend/src
# https://docs.sonarcloud.io/advanced-setup/analysis-scope/
# Exclude Frontend E2E tests from SonarCloud analysis
# sonar.exclusions=frontend/cypress/e2e/**/*
# Exclude folders from SonarCloud analysis
sonar.exclusions=\
frontend/node_modules/**,\
frontend/dist/**,\
frontend/dist/**,\
frontend/coverage/**,\
backend/build/**,\
backend/target/**,\
backend/gradle/**,\
backend/.gradle/**
# Exclude code duplication detection from SonarCloud analysis
sonar.cpd.exclusions=**/*
# Tests and coverage
sonar.tests=./frontend/**/*.{test.ts,test.tsx},./backend/src/test/kotlin
sonar.javascript.lcov.reportPaths=./frontend/coverage/lcov.info

Loading