Suggestion: a single-line rule suppression option

Suggestion: in addition to this:

            // ReSharper disable UnusedVariable
            var x = 0;
            // ReSharper restore UnusedVariable

Could we have this:

            var x = 0; // ReSharper disablesingle UnusedVariable

?

The full disable/restore is extremely verbose. We have a lot of rules from R# that we want on all the time as warnings, yet in very specific (but not rare) cases be able to disable. But disabling them is so noisy and clutters the code so much that we often want to simply downgrade the warning to a hint.

A single-line single-disable/restore would really help here.

(Also it would be great if ReSharper could be abbreviated to R#. That would be awesome!!)

1 comment

+1

"Scott Bilas"  wrote in message
news:20643902.522561313001656320.JavaMail.devnet@confluence.jetbrains.net...

Suggestion: in addition to this:

            // ReSharper disable UnusedVariable
            var x = 0;
            // ReSharper restore UnusedVariable

Could we have this:

            var x = 0; // ReSharper disablesingle UnusedVariable

?

The full disable/restore is extremely verbose. We have a lot of rules from
R# that we want on all the time as warnings, yet in very specific (but not
rare) cases be able to disable. But disabling them is so noisy and clutters
the code so much that we often want to simply downgrade the warning to a
hint.

A single-line single-disable/restore would really help here.

(Also it would be great if ReSharper could be abbreviated to R#. That would
be awesome!!)

---
Original message URL: http://devnet.jetbrains.net/message/5316517#5316517

0

Please sign in to leave a comment.