From fb6fa22235a809321acd837ac4bd2aa5b0986ce5 Mon Sep 17 00:00:00 2001 From: Arthur <115493229+Arthur8525@users.noreply.github.com> Date: Fri, 14 Nov 2025 19:43:36 -0300 Subject: [PATCH 1/4] Add sonar-project.properties for SonarQube configuration --- sonar-project.properties | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 sonar-project.properties diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 000000000..c61ab1b0a --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,13 @@ +properties +sonar.projectKey=sua-organizacao_seu-projeto +sonar.organization=sua-organizacao + +# Caminho do código fonte +sonar.sources=src + +# Arquivos a excluir +sonar.exclusions=**/node_modules/**,**/dist/**,**/coverage/**,**/public/** + +# Encoding of the source code. Default is default system encoding +sonar.sourceEncoding=UTF-8 +sonar.typescript.tsconfigPath=tsconfig.json From 46bf08bf9706c45004b87ab33161a3c22388680a Mon Sep 17 00:00:00 2001 From: Arthur <115493229+Arthur8525@users.noreply.github.com> Date: Fri, 14 Nov 2025 19:58:22 -0300 Subject: [PATCH 2/4] Add SonarCloud scanning workflow --- .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 000000000..ae75a4859 --- /dev/null +++ b/.github/workflows/sonar.yml @@ -0,0 +1,21 @@ +name: Scan SonarCloud + +on: + push: + branches: + - main + pull_request: + types: [opened, synchronize, reopened] + +jobs: + sonarqube: + name: SonarQube + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: SonarQube Scan + uses: SonarSource/sonarqube-scan-action@v6 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} From e29702da419c914eed583dcf19012fa1aff4bee7 Mon Sep 17 00:00:00 2001 From: Arthur <115493229+Arthur8525@users.noreply.github.com> Date: Fri, 14 Nov 2025 21:08:59 -0300 Subject: [PATCH 3/4] Update SonarQube project key and organization --- sonar-project.properties | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonar-project.properties b/sonar-project.properties index c61ab1b0a..fd27cf6b1 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,6 +1,6 @@ properties -sonar.projectKey=sua-organizacao_seu-projeto -sonar.organization=sua-organizacao +sonar.projectKey=Arthur8525_split +sonar.organization=Arthur8525 # Caminho do código fonte sonar.sources=src From e35c7908ad8697a4e22a2742a8c0ac5760105abb Mon Sep 17 00:00:00 2001 From: Arthur <115493229+Arthur8525@users.noreply.github.com> Date: Fri, 14 Nov 2025 21:24:51 -0300 Subject: [PATCH 4/4] Fix JSON formatting in components.json --- components.json | 1 + 1 file changed, 1 insertion(+) diff --git a/components.json b/components.json index fd5076fbd..0b4ee631e 100644 --- a/components.json +++ b/components.json @@ -14,3 +14,4 @@ "utils": "@/lib/utils" } } +