From adc24265071c2b052ac7572d6733862523aa1966 Mon Sep 17 00:00:00 2001 From: poli0981 <127664709+poli0981@users.noreply.github.com> Date: Sat, 24 Oct 2026 08:45:41 +0700 Subject: [PATCH] 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 --- sonar-project.properties | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sonar-project.properties b/sonar-project.properties index 6169757..9d728fa 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -10,9 +10,11 @@ sonar.sourceEncoding=UTF-8 # the scripts, the Tauri shell (Rust, and the Android project, which is # committed and edited), the migration page and the workflows. The tests are # 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.exclusions=tests/**,src/**/*.test.ts,src/**/*.test.tsx +sonar.exclusions=tests/**,src/**/*.test.ts,src/**/*.test.tsx,**/*.png,**/*.ico,**/*.icns,**/*.jar sonar.tests=. sonar.test.inclusions=tests/**,src/**/*.test.ts,src/**/*.test.tsx