hafthors
Regex Code Analyzer?
I'm looking for a Roslyn code analyzer that checks for proper use of Regex - I cannot use the Regex source generators yet, so I want something that checks that Regex with a const pattern uses .Compiled and that any .Compiled is not leaked (must be static readonly). Also, would like some sort of analyzer to check for dangerous dynamic Regex patterns without timeouts and any other Regex best practices.
17 replies