So I have in some code the following hardcoded IP being declared:
def nodeInfo(self): [...] server_ip='188.8.131.52'
And, yes, the hardcoded IP is exactly that because it acts as a placeholder; this is sample code we added to show people how use our code. All of our sample code is in a separate test directory. sonarqube is flagging that as a Security Hotspot, which is fine. But
- How to find out which rule called that out?
- How can I whitelist it for that specific IP? I really would rather not whitelist the test dir, but that is on the table.