Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[java] AvoidUsingHardCodedIP ignores match pattern #1323
Affects PMD Version:
Code Sample demonstrating the issue:
Leads to PMD reporting the following:
Running PMD through: Junit test runs pmd
Docs say pattern is
@KroArtem thanks for spotting this one!
That property is actually unused, and should be removed. It's legacy from back when the rule was a pure XPath rule:
The one property that is actually honoured is the
That property defaults to checking all, IPv4, IPv6 and IPv4 mapped IPv6.