From c49897ade9249b809503f69ba5587b152f895cb3 Mon Sep 17 00:00:00 2001 From: Gonzalo Diaz Date: Fri, 5 Sep 2025 11:00:55 -0400 Subject: [PATCH 1/2] [CONFIG] sonarcloud coverage file path added. --- .github/workflows/rust-coverage.yml | 3 +-- sonar-project.properties | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust-coverage.yml b/.github/workflows/rust-coverage.yml index 1a787ff..9ef8af9 100644 --- a/.github/workflows/rust-coverage.yml +++ b/.github/workflows/rust-coverage.yml @@ -61,7 +61,7 @@ jobs: - name: Upload coverage reports to Codecov with GitHub Action uses: codecov/codecov-action@v5 with: - files: coverage.out + files: lcov.info token: ${{ secrets.CODECOV_TOKEN }} # required verbose: true # optional (default = false) @@ -87,4 +87,3 @@ jobs: with: args: > -Dsonar.externalIssuesReportPaths=sonar-issues.json - -Dcommunity.rust.lcov.reportPaths=lcov.info diff --git a/sonar-project.properties b/sonar-project.properties index f78f75c..2fdeb13 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -11,4 +11,6 @@ sonar.organization=sir-gon #sonar.sources=. # Encoding of the source code. Default is default system encoding -#sonar.sourceEncoding=UTF-8 \ No newline at end of file +#sonar.sourceEncoding=UTF-8 + +sonar.coverage.lcov.reportPaths=lcov.info From f9bc4bc1bab14f6d85afd6f2892a8cd1451b4f91 Mon Sep 17 00:00:00 2001 From: Gonzalo Diaz Date: Fri, 5 Sep 2025 12:40:58 -0400 Subject: [PATCH 2/2] [CONFIG] better "clean" actions --- .gitignore | 3 +++ Makefile | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index 59192eb..31e64ed 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,8 @@ my-clippy-report.json sonar-issues.json + +lcov.info + /target diff --git a/Makefile b/Makefile index 495033c..0914e43 100644 --- a/Makefile +++ b/Makefile @@ -90,6 +90,9 @@ update: dependencies outdated upgrade: update clean: + rm -vf lcov.info + rm -vf my-clippy-report.json + rm -vf sonar-issues.json rm -vfr ./target || true mkdir -p ./target touch ./target/.gitkeep