mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-10 02:02:26 -04:00
[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.
This commit is contained in:
11
sonar-project.properties
Normal file
11
sonar-project.properties
Normal file
@@ -0,0 +1,11 @@
|
||||
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/**
|
||||
Reference in New Issue
Block a user