prodot / ReCommended-Extension

Code analysis improvements and context actions
Apache License 2.0
59 stars 11 forks source link

Question: Avoid local suppression #43

Closed NN--- closed 4 years ago

NN--- commented 4 years ago

Why it is considered as warning by default ? What is the correct way to suppress then ?

michael-damatov commented 4 years ago

No justification is required for local suppressions, however, suppressing if at method/type level (with the [SuppressMessage] attribute) would require to put a justification, although it's not checked to be correct.

The correct ways to suppress it: