Closed Earlopain closed 2 weeks ago
Nice catch, thanks for reporting.
The problem seems to be here, as this node matcher doesn’t expect the custom message. To teach it, this line may become:
$#boolean_matcher? …)
Would it fix the problem for you?
I can try that out in a bit. If that works, I'll make a pr with test for this. Thanks!
Edit: It works. Needs the same to apply for the different enforced style and then it's all good.
Config:
I have the following code:
which I would expect to correct to:
This happens because of the custom failure message at the end, offense happens correctly when its not present.