SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Christoph Wille

What's New in SD5: Suppressing Issues

I have introduced you to code issues / inspections already, today we are going to talk about "silencing" issues that are either false positives or intentional. Coming in Beta 2 you will be able to turn off an inspection once or entirely. Let's look at an example:

Calling a virtual member in a constructor isn't good practice, that's why the inspection tells you that you have a problem here. But what if that is intentional, and you don't want somebody else to inadvertently "fix" this when they get the flag too? Well, you can turn it off:

This will insert a comment of format "// disable once {name of code issue}" above the method call:

And as you can see, the squiggly lines are gone and SharpDevelop no longer compains about you calling a virtual method.

Published Feb 09 2014, 09:40 AM by ChristophWille
Filed under:

Comments

No Comments
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.