From b98464ba31b0496d2a26f769ea023a0038c243cf Mon Sep 17 00:00:00 2001 From: Thomas Vincent Date: Sun, 15 Nov 2026 13:24:32 -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 6fa15ca3ff8de3d1e36f6263d050b5f46f72747f Mon Sep 17 00:00:00 2001 From: Thomas Vincent Date: Sun, 15 Nov 2026 13:38:42 -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/**