Skip to content

Commit 5dfaca0

Browse files
fzipiclaude
andcommitted
fix: drop unsupported projectKey/organization, simplify glob
The previous commit's rename landed with stale pre-edit content (a failed git add pathspec for the old, now-deleted filename caused the whole staging command to abort, so the commit picked up whatever was already staged from the earlier git mv). This is the edit that was supposed to land: drop sonar.projectKey/sonar.organization (automatic analysis doesn't support overriding project identity from this file - it's bound via the GitHub App integration), and simplify the resourceKey glob from tests/test_operators/**/*.py to tests/test_operators/*.py to match the documented working pattern (both directories are flat, no ** needed). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent 6c8c656 commit 5dfaca0

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.sonarcloud.properties

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
sonar.projectKey=owasp-modsecurity_ModSecurity
2-
sonar.organization=owasp-modsecurity
3-
1+
# Project identity (key/organization) is bound via SonarCloud's GitHub App
2+
# integration for Automatic Analysis - not set here, since automatic
3+
# analysis doesn't support overriding it from this file.
4+
#
45
# tests/test_operators/ and tests/test_transformations/ contain literal test
56
# data for IP-matching operators (@ipMatch, @geoLookup) - S1313 ("hardcoded
67
# IP addresses") is a false positive there, since the whole point of the
78
# test is to exercise those exact literals. All other rules still apply.
89
sonar.issue.ignore.multicriteria=e1,e2
910
sonar.issue.ignore.multicriteria.e1.ruleKey=python:S1313
10-
sonar.issue.ignore.multicriteria.e1.resourceKey=tests/test_operators/**/*.py
11+
sonar.issue.ignore.multicriteria.e1.resourceKey=tests/test_operators/*.py
1112
sonar.issue.ignore.multicriteria.e2.ruleKey=python:S1313
12-
sonar.issue.ignore.multicriteria.e2.resourceKey=tests/test_transformations/**/*.py
13+
sonar.issue.ignore.multicriteria.e2.resourceKey=tests/test_transformations/*.py

0 commit comments

Comments
 (0)