From 646b5d6717b5969327449c4315da58f7005c478d Mon Sep 17 00:00:00 2001 From: Rob Brazier <2453018+RobBrazier@users.noreply.github.com> Date: Thu, 27 Nov 2025 21:00:52 +0000 Subject: [PATCH 1/4] chore: add sonarcloud scanning --- .github/codecov.yml | 29 ----------------------------- .github/workflows/build.yaml | 14 ++++---------- README.md | 4 ++-- 3 files changed, 6 insertions(+), 41 deletions(-) delete mode 100644 .github/codecov.yml diff --git a/.github/codecov.yml b/.github/codecov.yml deleted file mode 100644 index 8abeedb..0000000 --- a/.github/codecov.yml +++ /dev/null @@ -1,29 +0,0 @@ -comment: - layout: "header, diff, flags, components" - -component_management: - individual_components: - - component_id: plugin_hardcover - name: hardcover - paths: - - plugins/hardcover/** - - component_id: plugin_hardcover_sync - name: hardcover-sync - paths: - - plugins/hardcover-sync/** - - component_id: plugin_anilist - name: anilist - paths: - - plugins/anilist/** - - component_id: plugin_manga_chapters - name: manga-chapters - paths: - - plugins/manga-chapters/** - - component_id: lib_common - name: common - paths: - - libs/common/** - - component_id: lib_graphql - name: graphql - paths: - - libs/graphql/** diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 58ea2c3..b4af3f4 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -51,16 +51,10 @@ jobs: - name: Run Unit Tests run: just test --cov-report xml --junitxml=junit.xml -o junit_family=legacy - - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1 - with: - token: ${{ secrets.CODECOV_TOKEN }} - - - name: Upload test results to Codecov - if: ${{ !cancelled() }} - uses: codecov/test-results-action@47f89e9acb64b76debcd5ea40642d25a4adced9f # v1.1.1 - with: - token: ${{ secrets.CODECOV_TOKEN }} + - name: SonarQube Scan + uses: SonarSource/sonarqube-scan-action@fd88b7d7ccbaefd23d8f36f73b59db7a3d246602 # v6.0.0 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} build: runs-on: ${{ vars.ACTION_RUNNER || 'ubuntu-latest' }} diff --git a/README.md b/README.md index 7cc0b37..8626a23 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # calibre-plugins ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/RobBrazier/calibre-plugins/build.yaml) -[![Codecov](https://img.shields.io/codecov/c/gh/RobBrazier/calibre-plugins)](https://app.codecov.io/gh/RobBrazier/calibre-plugins) -[![Codacy grade](https://img.shields.io/codacy/grade/11d6e5b88f054995b0321f5437042cf4)](https://app.codacy.com/gh/RobBrazier/calibre-plugins/dashboard) +[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=RobBrazier_calibre-plugins&metric=coverage)](https://sonarcloud.io/summary/new_code?id=RobBrazier_calibre-plugins) +[![Quality gate](https://sonarcloud.io/api/project_badges/quality_gate?project=RobBrazier_calibre-plugins)](https://sonarcloud.io/summary/new_code?id=RobBrazier_calibre-plugins) ## Current Plugins From 94e8f192940837434e9644b9c624f1d4f6d44d31 Mon Sep 17 00:00:00 2001 From: Rob Brazier <2453018+RobBrazier@users.noreply.github.com> Date: Thu, 27 Nov 2025 21:03:43 +0000 Subject: [PATCH 2/4] chore: add sonar.projectKey --- .github/workflows/build.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index b4af3f4..30a6aa1 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -53,6 +53,8 @@ jobs: - name: SonarQube Scan uses: SonarSource/sonarqube-scan-action@fd88b7d7ccbaefd23d8f36f73b59db7a3d246602 # v6.0.0 + with: + args: -Dsonar.projectKey=RobBrazier_calibre-plugins env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} From bf18f481a1f39deb354955bc8d444351b265e40a Mon Sep 17 00:00:00 2001 From: Rob Brazier <2453018+RobBrazier@users.noreply.github.com> Date: Thu, 27 Nov 2025 21:05:33 +0000 Subject: [PATCH 3/4] chore: add sonar-project.properties --- .github/workflows/build.yaml | 2 -- sonar-project.properties | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 sonar-project.properties diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 30a6aa1..b4af3f4 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -53,8 +53,6 @@ jobs: - name: SonarQube Scan uses: SonarSource/sonarqube-scan-action@fd88b7d7ccbaefd23d8f36f73b59db7a3d246602 # v6.0.0 - with: - args: -Dsonar.projectKey=RobBrazier_calibre-plugins env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..fab1753 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,2 @@ +sonar.projectKey=RobBrazier_calibre-plugins +sonar.organization=robbrazier From f629905acad0e4afa6a1205187b9b140ccd5eb65 Mon Sep 17 00:00:00 2001 From: Rob Brazier <2453018+RobBrazier@users.noreply.github.com> Date: Thu, 27 Nov 2025 21:09:13 +0000 Subject: [PATCH 4/4] chore: add coverage reports to sonar exclusions --- sonar-project.properties | 1 + 1 file changed, 1 insertion(+) diff --git a/sonar-project.properties b/sonar-project.properties index fab1753..bbdc53e 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,2 +1,3 @@ sonar.projectKey=RobBrazier_calibre-plugins sonar.organization=robbrazier +sonar.exclusions=coverage.xml,junit.xml