Open jmohler1970 opened 6 years ago
Hi @jmohler1970 here's the regex used to define that rule:
I'm thinking just modifying that to NOT match when there's a leading period should clear up the false positive. Would you like to try sending a pull to the core repo that defines those default rules?
We have quite a few rules that were created several years ago so I'm sure there are a number of ones that we can tweak and update.
I not good with regular expressions, but I know the scenarios to be looked into
<space>isDefined(
( bad
(isDefined(
bad
arrayIsDefined(
good
.isDefined(
good, member function of above
(?<!array|\.)isdefined\(
i think might do the trick
This is the message shown
I am using the array member function
isDefined()
The advice to use a structKeyExists() seems to be invalid.