Search for a pattern that isn't in the code

Hello,

I'm new to resharper and I'm trying to make some custom code inspections to enforce certain elements when making a specific type of code.
For example I would like to make a code inspection that checks if there is a public constant string field with the name "name". If it isn't present, a warning should appear and I sould be able to use a quickfix to add the field.
I can't seem to find a way to do this in Reshaper. Does anyone know how I can make a pattern like this or if this is even possible?

1 comment
Comment actions Permalink
Official comment

Hello Robin,

 

sorry for the delay in responding.

Currently, there's no such option in ReSharper.

Thank you.

Please sign in to leave a comment.