Repository navigation
SONARPHP-1927 S1313 Adopt IpAddressClassifier for hardcoded-IP filtering in sonar-php - #1848
Conversation
01bc3ca to
965822d
Compare
…ing in sonar-php Delegate address validation and S1313 exemptions to analyzer commons. Extract hosts from URLs and endpoints, preserving CIDR prefixes for whole-range classification. Use shared parsing to exclude IP literals from hardcoded-secret detection and remove the rule-local IP regexes.
guillem-bartrina-sonarsource
left a comment
There was a problem hiding this comment.
LGTM, let's see with the bumped analyzer-commons version
519d1a8 to
eb8b26f
Compare
✅ All code review findings resolved.
Code Review ✅ Approved 2 closed / 2 findings🟡 Medium risk · Switching S1313 and secret filtering to shared IP parsing could misclassify literals, suppressing unsafe-address warnings or flagging benign values. Delegates IP address extraction and S1313 hardcoded-IP exemptions to analyzer-commons ✅ 2 closed✅ Bug: Scheme-less
|
| Auto-apply | Compact |
|
|
Was this helpful? React with 👍 / 👎 | Gitar
|




Delegate address validation and S1313 exemptions to analyzer commons.
Extract hosts from URLs and endpoints, preserving CIDR prefixes for
whole-range classification.
Use shared parsing to exclude IP literals from hardcoded-secret
detection and remove the rule-local IP regexes.