From b7a8a6cbec85afc5738ec071a2b0426822eb69d3 Mon Sep 17 00:00:00 2001 From: Izzy Aristide <44146685+IzzyDotExe@users.noreply.github.com> Date: Tue, 8 Oct 2024 21:30:02 -0400 Subject: [PATCH 1/4] Create sonar.yml --- .github/workflows/sonar.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/sonar.yml diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml new file mode 100644 index 0000000..2d87eaf --- /dev/null +++ b/.github/workflows/sonar.yml @@ -0,0 +1,21 @@ +name: Sonar +on: + push: + branches: + - main + pull_request: + types: [opened, synchronize, reopened] +jobs: + sonarcloud: + name: SonarCloud + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + submodules: false + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} From 0fc13577c9a6a6a84239d36ee608ecc40e032081 Mon Sep 17 00:00:00 2001 From: Izzy Aristide <44146685+IzzyDotExe@users.noreply.github.com> Date: Tue, 8 Oct 2024 21:31:55 -0400 Subject: [PATCH 2/4] Create sonar-project.properties --- sonar-project.properties | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 sonar-project.properties diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..f808c0b --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,12 @@ +sonar.organization=arcv3 + +# This is the name and version displayed in the SonarCloud UI. +#sonar.projectName=ARC +#sonar.projectVersion=1.0 + + +# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. +#sonar.sources=. + +# Encoding of the source code. Default is default system encoding +#sonar.sourceEncoding=UTF-8 From 2fb5fe40bf9e6e306ff6c0b630bb5e101d27aa40 Mon Sep 17 00:00:00 2001 From: Izzy Aristide <44146685+IzzyDotExe@users.noreply.github.com> Date: Tue, 8 Oct 2024 21:34:03 -0400 Subject: [PATCH 3/4] Update sonar-project.properties --- sonar-project.properties | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sonar-project.properties b/sonar-project.properties index f808c0b..251edb2 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,12 +1,12 @@ sonar.organization=arcv3 # This is the name and version displayed in the SonarCloud UI. -#sonar.projectName=ARC -#sonar.projectVersion=1.0 +sonar.projectName=ARC +sonar.projectVersion=1.0 # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. -#sonar.sources=. +sonar.sources=. # Encoding of the source code. Default is default system encoding -#sonar.sourceEncoding=UTF-8 +sonar.sourceEncoding=UTF-8 From 1ad09ac20e3011f83bab2715962d9c18e6dbf571 Mon Sep 17 00:00:00 2001 From: Izzy Aristide <44146685+IzzyDotExe@users.noreply.github.com> Date: Tue, 8 Oct 2024 21:35:25 -0400 Subject: [PATCH 4/4] Update sonar-project.properties --- sonar-project.properties | 1 + 1 file changed, 1 insertion(+) diff --git a/sonar-project.properties b/sonar-project.properties index 251edb2..3b2a555 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,3 +1,4 @@ +sonar.projectKey=ARCv3_ARC sonar.organization=arcv3 # This is the name and version displayed in the SonarCloud UI.