From a3b86971d33c9ce27a42fdf8e6627be26281a68a Mon Sep 17 00:00:00 2001 From: Thomas Vincent Date: Sun, 15 Nov 2026 13:26:37 -0800 Subject: [PATCH 1/2] ci: keep tests out of SonarQube Cloud analysis Signed-off-by: Thomas Vincent --- .sonarcloud.properties | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .sonarcloud.properties diff --git a/.sonarcloud.properties b/.sonarcloud.properties new file mode 100644 index 0000000..e1de891 --- /dev/null +++ b/.sonarcloud.properties @@ -0,0 +1,9 @@ +# SPDX-FileCopyrightText: 2026 Thomas Vincent +# SPDX-License-Identifier: GPL-2.0-or-later +# +# SonarQube Cloud automatic analysis. Analyze the plugin code and leave +# tests/ out: test scripts build fixture SQL and fake servers that the +# production rules are not meant for. Automatic analysis takes plain +# paths, not wildcards. +sonar.sources=. +sonar.exclusions=tests From 98f853507682c99b8ba5c5a0676d0a22a5588151 Mon Sep 17 00:00:00 2001 From: Thomas Vincent Date: Sun, 15 Nov 2026 13:39:45 -0800 Subject: [PATCH 2/2] ci: match the files under tests/ in the Sonar exclusion Signed-off-by: Thomas Vincent --- .sonarcloud.properties | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.sonarcloud.properties b/.sonarcloud.properties index e1de891..c9dfc5a 100644 --- a/.sonarcloud.properties +++ b/.sonarcloud.properties @@ -3,7 +3,7 @@ # # SonarQube Cloud automatic analysis. Analyze the plugin code and leave # tests/ out: test scripts build fixture SQL and fake servers that the -# production rules are not meant for. Automatic analysis takes plain -# paths, not wildcards. +# production rules are not meant for. sonar.sources takes plain paths; +# the exclusion needs a glob to match the files under tests/. sonar.sources=. -sonar.exclusions=tests +sonar.exclusions=tests/**