diff --git a/.gitea/workflows/sonarqube.yml b/.gitea/workflows/sonarqube.yml index f5612da..109b382 100644 --- a/.gitea/workflows/sonarqube.yml +++ b/.gitea/workflows/sonarqube.yml @@ -33,6 +33,9 @@ jobs: - name: SonarQube Scan uses: SonarSource/sonarqube-scan-action@v7.0.0 + with: + args: > + -Dsonar.cxx.jsonCompilationDatabase=./build/Debug/compile_commands.json env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_HOST_URL: ${{ secrets.SONAR_HOST }} \ No newline at end of file diff --git a/sonar-project.properties b/sonar-project.properties index 9120d71..59b564d 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -8,4 +8,6 @@ sonar.sources=Bigfoot/Sources sonar.tests=Bigfoot/Tests sonar.cxx.file.suffixes=.hpp,.cpp,.h -sonar.cxx.clangtidy.reportPaths=tidy_result.txt \ No newline at end of file +sonar.cxx.clangtidy.reportPaths=tidy_result.txt + +sonar.cxx.jsonCompilationDatabase.analyzeOnlyContainedFiles=True \ No newline at end of file