mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-19 19:18:05 +00:00
refactor: move sonar-suppressions.json to .github/ directory
Keeps CI config files consolidated under .github/. Updated Publish.yml references accordingly.
This commit is contained in:
@@ -327,13 +327,13 @@ jobs:
|
|||||||
id: sonar_rules
|
id: sonar_rules
|
||||||
run: |
|
run: |
|
||||||
# Read rule IDs from sonar-suppressions.json and generate multicriteria args
|
# Read rule IDs from sonar-suppressions.json and generate multicriteria args
|
||||||
if [ ! -f "sonar-suppressions.json" ]; then
|
if [ ! -f ".github/sonar-suppressions.json" ]; then
|
||||||
echo "ERROR: sonar-suppressions.json not found"
|
echo "ERROR: .github/sonar-suppressions.json not found"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Extract rule IDs and build multicriteria parameters
|
# 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_names=""
|
||||||
multicriteria_args=""
|
multicriteria_args=""
|
||||||
index=1
|
index=1
|
||||||
@@ -744,13 +744,13 @@ jobs:
|
|||||||
TOOL_UUID="8954dff3-f19c-429c-ac76-c45fa5e73b62" # SonarC# tool UUID
|
TOOL_UUID="8954dff3-f19c-429c-ac76-c45fa5e73b62" # SonarC# tool UUID
|
||||||
API_BASE="https://app.codacy.com/api/v3"
|
API_BASE="https://app.codacy.com/api/v3"
|
||||||
|
|
||||||
if [ ! -f "sonar-suppressions.json" ]; then
|
if [ ! -f ".github/sonar-suppressions.json" ]; then
|
||||||
echo "ERROR: sonar-suppressions.json not found"
|
echo "ERROR: .github/sonar-suppressions.json not found"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Extract rule IDs from JSON
|
# 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)
|
rule_count=$(echo "$rules" | wc -w)
|
||||||
echo "Found $rule_count rules to disable in Codacy"
|
echo "Found $rule_count rules to disable in Codacy"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user