ci(sonarcloud): leave binary files out of the analysis
The scanner indexed every PNG, ICO, ICNS and the Gradle wrapper's jar and warned about each one it read as UTF-8 text (about seventy warnings per run). There is nothing in them to analyse. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d7a86d581e
commit
adc2426507
1 file changed
+4
-2
@@ -10,9 +10,11 @@ sonar.sourceEncoding=UTF-8
|
|||||||
# the scripts, the Tauri shell (Rust, and the Android project, which is
|
# the scripts, the Tauri shell (Rust, and the Android project, which is
|
||||||
# committed and edited), the migration page and the workflows. The tests are
|
# committed and edited), the migration page and the workflows. The tests are
|
||||||
# analysed as tests: the same files Vitest runs (vitest.config.ts) plus
|
# analysed as tests: the same files Vitest runs (vitest.config.ts) plus
|
||||||
# tests/helpers. Files git ignores are left out on their own.
|
# tests/helpers. Files git ignores are left out on their own; binary files
|
||||||
|
# (the icons, the Gradle wrapper's jar) are left out here — there is nothing
|
||||||
|
# in them to analyse, and the scanner warns about each one it reads as text.
|
||||||
sonar.sources=.
|
sonar.sources=.
|
||||||
sonar.exclusions=tests/**,src/**/*.test.ts,src/**/*.test.tsx
|
sonar.exclusions=tests/**,src/**/*.test.ts,src/**/*.test.tsx,**/*.png,**/*.ico,**/*.icns,**/*.jar
|
||||||
sonar.tests=.
|
sonar.tests=.
|
||||||
sonar.test.inclusions=tests/**,src/**/*.test.ts,src/**/*.test.tsx
|
sonar.test.inclusions=tests/**,src/**/*.test.ts,src/**/*.test.tsx
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user