Jonathan
Jonathan

Reputation: 26649

Can you ignore specific redundant qualifiers in Resharper?

We have always used Me.Property and Me.Control in our VB projects, and have just got ReSharper. Does anyone know of a way to get it to ignore this specific type if redundant qualifier?

I still want it to complain if I use any other redundant qualifiers.

Upvotes: 4

Views: 671

Answers (2)

Jonathan
Jonathan

Reputation: 26649

I have found the setting which actually stops the warning from appearing.

Options > Code Inspection > Inspection Severity > VB.NET > Redundancies in Code

Find Redundant 'Me.' Qualifier and change it from "Warning" to "Do Not Show".

Redundant 'Me' Qualifier

Upvotes: 1

Jura Gorohovsky
Jura Gorohovsky

Reputation: 10148

As far as I know, all known cases of qualifier redundancy are currently covered by this single inspection, which means that you can't tell ReSharper to ignore occurrences of Me but still highlight, say, explicit namespace references.

Here's a relevant feature request that you're free to vote for and watch.

Upvotes: 2

Related Questions