Files
netbird/sonar-project.properties
Zoltán Papp 0c136fffb9 [ci] Add sonar-project.properties to exclude the Wails React frontend
Sonar's default scanner picks up TypeScript / JSX from the frontend
tree but applies rules that don't fit a UI codebase reviewed visually
(component dead-code detection, hook-shape conventions, ...). Skip
client/ui-wails/frontend from both analysis and coverage so neither
the rules engine nor the coverage gate trips on UI changes.

The Go side of the Wails UI (client/ui-wails/*.go, services/) is left
in scope on purpose — same Go standards as the rest of the repo.
2026-05-05 15:10:23 +02:00

11 lines
501 B
Properties

sonar.projectKey=netbirdio_netbird
sonar.organization=netbirdio
# Exclude the React frontend from analysis. The Go side of the Wails UI
# (client/ui-wails/*.go and services/) is intentionally kept in scope —
# it's regular Go code with the same standards as the rest of the repo.
sonar.exclusions=client/ui-wails/frontend/**
# Mirror the same paths under coverage so missing coverage on UI code
# doesn't drag the overall coverage metric down.
sonar.coverage.exclusions=client/ui-wails/frontend/**