From ba2a9bb150beffb3192ef232215ffc604569d498 Mon Sep 17 00:00:00 2001 From: Yago Chaves <92744624+YagoChaves@users.noreply.github.com> Date: Fri, 14 Nov 2025 20:48:06 -0300 Subject: [PATCH 1/5] 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 00000000..c61ab1b0 --- /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 0f9e08309cbe7cb1e3a5209dafc6a91218eaea9f Mon Sep 17 00:00:00 2001 From: Yago Chaves <92744624+YagoChaves@users.noreply.github.com> Date: Fri, 14 Nov 2025 20:50:02 -0300 Subject: [PATCH 2/5] Add SonarCloud scan workflow configuration --- .github/workflows/.github/workflows/sonar.yml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/.github/workflows/sonar.yml diff --git a/.github/workflows/.github/workflows/sonar.yml b/.github/workflows/.github/workflows/sonar.yml new file mode 100644 index 00000000..ae75a485 --- /dev/null +++ b/.github/workflows/.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 a36fad047cb4b143e5f25014d239712d7c842d84 Mon Sep 17 00:00:00 2001 From: Yago Chaves <92744624+YagoChaves@users.noreply.github.com> Date: Fri, 14 Nov 2025 21:24:24 -0300 Subject: [PATCH 3/5] Add SonarCloud scan 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 00000000..ae75a485 --- /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 5d28b8f41082aabca289d56da6776ffbf44eab0e Mon Sep 17 00:00:00 2001 From: Yago Chaves <92744624+YagoChaves@users.noreply.github.com> Date: Fri, 14 Nov 2025 21:26:10 -0300 Subject: [PATCH 4/5] Delete .github/workflows/.github/workflows directory --- .github/workflows/.github/workflows/sonar.yml | 21 ------------------- 1 file changed, 21 deletions(-) delete mode 100644 .github/workflows/.github/workflows/sonar.yml diff --git a/.github/workflows/.github/workflows/sonar.yml b/.github/workflows/.github/workflows/sonar.yml deleted file mode 100644 index ae75a485..00000000 --- a/.github/workflows/.github/workflows/sonar.yml +++ /dev/null @@ -1,21 +0,0 @@ -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 b316903aee8d7f1381af3b3028d0bcf7f1b644ec Mon Sep 17 00:00:00 2001 From: Yago Chaves <92744624+YagoChaves@users.noreply.github.com> Date: Fri, 14 Nov 2025 21:40:15 -0300 Subject: [PATCH 5/5] 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 c61ab1b0..02b1ee5c 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=YagoChaves_spliit +sonar.organization=yagochaves # Caminho do código fonte sonar.sources=src