From a76b8f55597099d9c150dbbc295c9a95df078c61 Mon Sep 17 00:00:00 2001 From: Thomas Vincent Date: Sun, 15 Nov 2026 13:27:40 -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 0813d77c65463f61836bb8ec0bb231b049ea936b Mon Sep 17 00:00:00 2001 From: Thomas Vincent Date: Sun, 15 Nov 2026 13:40:47 -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/**