Skip to content

Commit 11e27d2

Browse files
committed
feat: add SonarQube integration for MacOS and update .gitignore for Mac-specific files
1 parent 32954a7 commit 11e27d2

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

.github/workflows/dotnet.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ jobs:
8484
run: |
8585
echo "![Coverage](./coverage-report/badge_combined.svg)" > coverage-badge.md
8686
cat coverage-badge.md >> README.md
87+
88+
- name : Sonarqube (SonarCloud)
89+
if: matrix.platform.name == 'MacOS'
90+
uses: SonarSource/sonarqube-scan-action@v4.2.1
91+
env:
92+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
93+
8794

8895
publish_badge:
8996
runs-on: ubuntu-24.04

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,7 @@
2020
/codeql*
2121
/*.dot
2222
/*snyk*
23+
24+
# Mac OS
25+
.DS_Store
26+
.AppleDouble

sonar-project.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
sonar.projectKey=magic5644_codeLineCounter
2+
3+
# relative paths to source directories. More details and properties are described
4+
# at https://docs.sonarsource.com/sonarqube-server/latest/project-administration/analysis-scope/
5+
sonar.sources=.

0 commit comments

Comments
 (0)