From b4334d18d6f7439e6725de2ad812e2683a030895 Mon Sep 17 00:00:00 2001 From: Beppe Catanese <1771700+gcatanese@users.noreply.github.com> Date: Thu, 29 Aug 2024 16:37:31 +0200 Subject: [PATCH 1/2] Create sonarcloud.yml --- .github/workflows/sonarcloud.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/sonarcloud.yml diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml new file mode 100644 index 0000000..487cec3 --- /dev/null +++ b/.github/workflows/sonarcloud.yml @@ -0,0 +1,21 @@ +name: "Sonarcloud Analysis" + +on: ["pull_request"] + +jobs: + sonarcloud-analysis: + + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + # Disabling shallow clone to improve relevancy of SonarCloud reporting + fetch-depth: 0 + + - name: SonarCloud integration + uses: sonarsource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} From fc0f8e3cea104f4babf8f5de6e318093e5452cc7 Mon Sep 17 00:00:00 2001 From: Beppe Catanese <1771700+gcatanese@users.noreply.github.com> Date: Thu, 29 Aug 2024 16:40:55 +0200 Subject: [PATCH 2/2] Create sonar-project.properties --- sonar-project.properties | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 sonar-project.properties diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..f93b1b3 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,22 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright Contributors to the ODPi Egeria project. + +# General settings +sonar.organization=adyen +sonar.projectKey=Adyen_adyen-postman + +# Path to sources +#sonar.sources=. +sonar.exclusions=src/__mocks__/**/* , src/typings/**/* , src/__tests__/**/* +#sonar.inclusions= + +# Path to tests +#sonar.tests= +#sonar.test.exclusions= +#sonar.test.inclusions= + +# Source encoding +#sonar.sourceEncoding=UTF-8 + +# Exclusions for copy-paste detection +#sonar.cpd.exclusions=