Skip to content

Commit e38cf8d

Browse files
committed
Update SonarQube config exclusions and comment test settings
Expanded sonar.exclusions in both backend and frontend sonar-project.properties to cover additional directories and files. Commented out sonar.tests and sonar.test.inclusions to avoid issues with empty test sets. Added sonar.language=py to backend config.
1 parent 2010359 commit e38cf8d

2 files changed

Lines changed: 11 additions & 8 deletions

File tree

sonar-project.properties

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ sonar.projectVersion=1.0
1010
sonar.sources=src
1111

1212
# Exclude frontend, tests, migrations, and other non-backend code
13-
sonar.exclusions=**/node_modules/**,**/frontend/static/frontend/**,**/migrations/**,**/tests/**,**/__pycache__/**,**/venv/**,**/*.pyc
13+
sonar.exclusions=**/node_modules/**,**/frontend/**,**/migrations/**,**/tests/**,**/__pycache__/**,**/venv/**,**/*.pyc,**/.venv/**,**/staticfiles/**,**/static/frontend/**
1414

15-
# Test files
16-
sonar.tests=src
17-
sonar.test.inclusions=**/tests/**,**/*_test.py,**/test_*.py
15+
# Test files (commented out to avoid empty test issues)
16+
# sonar.tests=src
17+
# sonar.test.inclusions=**/tests/**,**/*_test.py,**/test_*.py
1818

1919
# Python specific settings
2020
sonar.python.version=3.7,3.8,3.9,3.10,3.11
@@ -24,3 +24,6 @@ sonar.python.version=3.7,3.8,3.9,3.10,3.11
2424

2525
# Encoding of the source code. Default is default system encoding
2626
sonar.sourceEncoding=UTF-8
27+
28+
# Language
29+
sonar.language=py

src/frontend/static/frontend/sonar-project.properties

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ sonar.projectVersion=1.0
1010
sonar.sources=src
1111

1212
# Exclude node_modules, build output, and test files from analysis
13-
sonar.exclusions=**/node_modules/**,**/dist/**,**/coverage/**,**/*.test.ts,**/*.test.tsx,**/*.spec.ts,**/*.spec.tsx
13+
sonar.exclusions=**/node_modules/**,**/dist/**,**/coverage/**,**/*.test.ts,**/*.test.tsx,**/*.spec.ts,**/*.spec.tsx,**/webpack.config.js,**/rspack.config.js
1414

15-
# Test files
16-
sonar.tests=src
17-
sonar.test.inclusions=**/*.test.ts,**/*.test.tsx,**/*.spec.ts,**/*.spec.tsx
15+
# Test files (commented out to avoid empty test issues)
16+
# sonar.tests=src
17+
# sonar.test.inclusions=**/*.test.ts,**/*.test.tsx,**/*.spec.ts,**/*.spec.tsx
1818

1919
# TypeScript/JavaScript specific
2020
sonar.javascript.lcov.reportPaths=coverage/lcov.info

0 commit comments

Comments
 (0)