Skip to content

Commit

Permalink
Merge pull request #107 from MTES-MCT/sonarcloud-properties
Browse files Browse the repository at this point in the history
Update sonarcloud properties
  • Loading branch information
lwih authored Mar 11, 2024
2 parents 9d72ad6 + 8e64dd6 commit 43f1740
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
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

0 comments on commit 43f1740

Please sign in to comment.