How do I create custom error patterns?
We're using an obfuscator to protect our software. For some reason, the obfuscator has troubles processing nested try\catch blocks. Is it possible to create a custom check in Resharper that would highlight occurences of try\catch or using within catch blocks and prevent the solution from compiling?
Please sign in to leave a comment.
Hi,
You may use 'Search with Pattern' feature of ReSharper. It is located in the 'ReSharper | Options | Code Inspection | Custom Patterns' dialog.
Here's a link to some useful blogbosts about it as well:
- http://blogs.jetbrains.com/dotnet/2010/08/highlighting-custom-patterns-with-resharper/
- http://blogs.jetbrains.com/dotnet/2010/06/sample-ssr-pattern-catalog-available-for-download/
- http://blogs.jetbrains.com/dotnet/2012/04/searching-for-patterns-in-html-using-resharper-6/
Hope this helps.
Thanks!