-
Notifications
You must be signed in to change notification settings - Fork 119
Open
Description
I have the following code:
@Override
public ConditionEvaluationResult evaluateExecutionCondition(final ExtensionContext ctx) {
final ConditionEvaluationResult result;
if (new Phino().available("0.0.0.43")) {
result = ConditionEvaluationResult.enabled("Phino is available");
} else {
result = ConditionEvaluationResult.disabled("Phino is not available");
}
return result;
}I get the following error:
[INFO] PMD: src/test/java/org/eolang/hone/DisabledWithoutPhinoCondition.java[15-15]: Do not hard code the IP address '0.0.0.43' (AvoidUsingHardCodedIP)
As you can see, 0.0.0.43 is a version number, not an IP.
Expected behaviour:
qulice doesn't complain on custom strings, even if they look like IP addresses.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels