Affects PMD Version:
6.5.0
Rule:
AvoidUsingHardCodedIP
Description:
AvoidUsingHardCodedIP reports that string ":bee" is a hardcoded IP. It looks like support for IPv6 was added but documentation is outdated.
Code Sample demonstrating the issue:
taskViewSteps.printComment(":bee")
Leads to PMD reporting the following:
Application with hard-coded IP addresses can become impossible to deploy in some cases.
Externalizing IP adresses is preferable.AvoidUsingHardCodedIP
Running PMD through: Junit test runs pmd
Docs say pattern is ^"[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}"$
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4