Pattern matching when a string literal argument is used

I'm trying to match the following pattern where this method is invoked with a string literal passed in instead of a method call.  


I want to highlight the following cases in order to apply a hint/warning:  




in favor of something like this




I've tried numerous variations with name being an argument, an identifier, with quotes, without quotes.  I can't get it to match cases where a string literal is passed in.   If I omit the quotes below it will match every case including ones that are the correct usage.  


1 comment
Comment actions Permalink
Official comment

Hello Jaime,


Sorry for the delay in responding.

Unfortunately, there's no such option in ReSharper, please refer to the following feature request -

You are welcome to comment or vote for it.

Thank you.

Please sign in to leave a comment.