From 0d94b4df52ca271a9efedffbc29a5e9164c314a4 Mon Sep 17 00:00:00 2001 From: Miha Kralj Date: Wed, 4 Mar 2026 08:49:10 -0800 Subject: [PATCH] refactor: move sonar-suppressions.json to .github/ directory Keeps CI config files consolidated under .github/. Updated Publish.yml references accordingly. --- .../sonar-suppressions.json | 0 .github/workflows/Publish.yml | 12 ++++++------ 2 files changed, 6 insertions(+), 6 deletions(-) rename sonar-suppressions.json => .github/sonar-suppressions.json (100%) diff --git a/sonar-suppressions.json b/.github/sonar-suppressions.json similarity index 100% rename from sonar-suppressions.json rename to .github/sonar-suppressions.json diff --git a/.github/workflows/Publish.yml b/.github/workflows/Publish.yml index 59a661e0..d812be06 100644 --- a/.github/workflows/Publish.yml +++ b/.github/workflows/Publish.yml @@ -327,13 +327,13 @@ jobs: id: sonar_rules run: | # Read rule IDs from sonar-suppressions.json and generate multicriteria args - if [ ! -f "sonar-suppressions.json" ]; then - echo "ERROR: sonar-suppressions.json not found" + if [ ! -f ".github/sonar-suppressions.json" ]; then + echo "ERROR: .github/sonar-suppressions.json not found" exit 1 fi # Extract rule IDs and build multicriteria parameters - rules=$(jq -r '.rules[].id' sonar-suppressions.json) + rules=$(jq -r '.rules[].id' .github/sonar-suppressions.json) multicriteria_names="" multicriteria_args="" index=1 @@ -744,13 +744,13 @@ jobs: TOOL_UUID="8954dff3-f19c-429c-ac76-c45fa5e73b62" # SonarC# tool UUID API_BASE="https://app.codacy.com/api/v3" - if [ ! -f "sonar-suppressions.json" ]; then - echo "ERROR: sonar-suppressions.json not found" + if [ ! -f ".github/sonar-suppressions.json" ]; then + echo "ERROR: .github/sonar-suppressions.json not found" exit 1 fi # Extract rule IDs from JSON - rules=$(jq -r '.rules[].id' sonar-suppressions.json) + rules=$(jq -r '.rules[].id' .github/sonar-suppressions.json) rule_count=$(echo "$rules" | wc -w) echo "Found $rule_count rules to disable in Codacy"