2 ms·
My god. I wish I could find a linter to ban startsWith and regex from my codebases. I swear 99% of their uses are buggy hacky shit
by 0x000000E2 6y ago
My god. I wish I could find a linter to ban startsWith and regex from my codebases. I swear 99% of their uses are buggy hacky shit
- chrisandchris 6y agoCan‘t tell you how often I have to use StartsWith/Contains in some interface when connecting to applications together because of the missing ability to extract proper unique/primary keys for objects from any of the systems. So please don‘t, I need these buggy hacks ;)
- mdaniel 6y agoYou may find semgrep handy for that, although I don't offhand know how to express "any use of regex" in its language https://github.com/returntocorp/semgrep https://github.com/returntocorp/semgrep