-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsonar-project.properties
More file actions
25 lines (19 loc) · 1.23 KB
/
sonar-project.properties
File metadata and controls
25 lines (19 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
sonar.projectKey=SW-Cloud_CFA_NVIDIA_Config_Manager_nv-config-manager
sonar.qualitygate.wait=true
# Python version for more precise analysis
sonar.python.version=3.11, 3.13
# Python coverage reports (generated by pytest-cov)
sonar.python.coverage.reportPaths=coverage.xml,components/nautobot/coverage.xml,components/network-templates/coverage.xml,installer/coverage.xml
# Exclude Helm templates (Go templating), tests, and mock fixture payloads from analysis
sonar.exclusions=deploy/helm/templates/**,src/tests/**,ui/tests/**,components/nautobot/tests/**,components/network-templates/tests/**,installer/tests/**,development/mock_topology/context/**/*.json
# Exclude UI code from coverage analysis (E2E tests don't produce line coverage)
# Python code will still be checked for coverage
sonar.coverage.exclusions=ui/**/*
# Reduce duplication detection for intentionally repetitive code:
# - Mock data and handlers
# - E2E test files (similar test patterns across workflows)
# - UI components with similar card layouts
sonar.cpd.exclusions=ui/src/mocks/**/*,ui/tests/**/*,**/apiMocks.ts,**/*.spec.ts
# Duplication thresholds - increase to reduce noise from small similar code blocks
sonar.cpd.python.minimumtokens=500
sonar.cpd.python.minimumlines=500