|
3 | 3 | sonar.host.url=https://sonarcloud.io |
4 | 4 | sonar.qualitygate.wait=true |
5 | 5 | sonar.sourceEncoding=UTF-8 |
6 | | -sonar.sources=. |
7 | | -sonar.coverage.exclusions=services/read-only-viewer/**, services/dos-ui/**, architecture/**, **/*__init__.py, scripts/**, infrastructure/**, tests/**, scripts/workflow/tests/**, **/*.test.ts, **/*.spec.ts, tests/ui/src/**, scripts/workflow/create_open_search_index.py, scripts/workflow/populate_open_search_index.py |
8 | | -sonar.exclusions=services/read-only-viewer/**, services/dos-ui/**, tests/**, scripts/workflow/tests/**, /**/__tests__/**, */*.test.tsx, **/*.test.ts, **/*test*.py, **/test_*.py, **/tests/unit/** |
9 | 6 |
|
10 | | -#sonar.python.coverage.reportPaths=.coverage/coverage.xml |
11 | | -#sonar.[javascript|typescript].lcov.reportPaths=.coverage/lcov.info |
| 7 | +# New Code analysis configuration - only fail on issues introduced in current branch |
| 8 | +sonar.newCode.referenceBranch=main |
| 9 | + |
| 10 | +# Quality gate configuration - fail pipeline on new code issues |
| 11 | +sonar.qualitygate.requiredOnlyOnNewCode=true |
| 12 | + |
| 13 | +# Language-specific configurations |
| 14 | +sonar.python.version=3.12 |
| 15 | +sonar.python.coverage.reportPaths=**/coverage-*.xml,coverage.xml,.coverage.xml |
| 16 | + |
| 17 | +# Source and test configuration |
| 18 | +sonar.sources=application,services,infrastructure |
| 19 | +sonar.tests=tests |
| 20 | +sonar.test.inclusions=**/test_*.py,**/*_test.py,**/*.test.ts,**/*.spec.ts,**/tests/** |
| 21 | + |
| 22 | +# Coverage exclusions - files that don't need coverage |
| 23 | +sonar.coverage.exclusions=**/*__init__.py,**/*.test.*,**/test_*,**/tests/**,services/read-only-viewer/**,services/dos-ui/**,architecture/**,scripts/**,infrastructure/**,tests/ui/src/**,scripts/workflow/create_open_search_index.py,scripts/workflow/populate_open_search_index.py |
| 24 | + |
| 25 | +# Analysis exclusions - files that should not be analyzed at all |
| 26 | +sonar.exclusions=services/read-only-viewer/**,services/dos-ui/**,tests/**,scripts/workflow/tests/**,/**/__tests__/**,**/*.test.*,**/test_*.py,**/tests/unit/**,**/.terraform/**,**/node_modules/**,**/.venv/**,**/__pycache__/** |
| 27 | + |
0 commit comments