Can you ignore specific redundant qualifiers in Resharper?

We always used Me.Property and Me.Control in our VB projects and just got ReSharper. Does anyone know how to make it ignore this particular type if the qualifier is redundant?

I still want him to complain if I use other redundant qualifiers.

+4
source share
2 answers

I found a setting that actually stops the warning from appearing.

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

Find the excess self. Marker and change it from "Warning" to "Do not show."

Redundant 'me' qualifier

+1
source

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

Here is the corresponding feature request for which you can vote and watch.

+2
source

Source: https://habr.com/ru/post/1393953/


All Articles