konveyor / rulesets

Collections of static code analysis rules
Apache License 2.0
1 stars 17 forks source link

[BUG] [RULES] False positive on hardcorded IP rule hardcoded-ip-address #83

Closed abrugaro closed 2 months ago

abrugaro commented 2 months ago

Konveyor version

0.5 beta 1

Tested with Kantra b0.5 beta1 Target: openjdk Source: none Source code used: https://github.com/openmrs/openmrs-core Rule triggered: Hardcoded IP Address hardcoded-ip-address Report: https://drive.google.com/file/d/12alisbavSvJ9-3O_8GNBkQ5-muk5Pgo

The rule is detecting ids and other elements like IPs. This rule is also searching for IPs in comments.

image image