Picodes/4naly3er

`delegateCallInLoop.ts` often ends up in an infinite loop

JustDravee opened this issue ยท 1 comments

So, this rule sometimes (always for me ๐Ÿ˜…) ends in an infinite loop. I usually delete it to run the tool.
I'm pretty sure AST would be much better.
Or, even a simple regex on delegatecall (yes, giga high chance of false positive, but may hit) would be better.
Wdyt?
https://github.com/Picodes/4naly3er/blob/main/src/issues/H/delegateCallInLoop.ts

Yes, it hits catastrophic backtracking very frequently