Suppressions don't work (or at least a lot of them).
See original GitHub issueYou can’t suppress messages. None of these three in this example actually suppress the associated errors; all of these were generated by the built-in quick fix that is intended to suppress them, not manually.
public void Blah()
{
try
{
Console.WriteLine("Doing something");
}
// ReSharper disable once CatchAllClause
catch (Exception e)
{
Console.WriteLine("Oh no! " + e.Message);
// ReSharper disable once ExceptionNotDocumented
// ReSharper disable once ThrowingSystemException
throw;
}
Pretty sure suppressions don’t work in various other situations, too, but this was a convenient example.
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Support inline definitions of suppressions because relative ...
Currently, suppressions need to be defined in a separate xml file. I think it would be useful if that was not necessary.
Read more >Unwanted Thoughts? Don't Try to Suppress Them
It's time to accept the good/bad news: Thought suppression doesn't work. The harder you try to eliminate something from your mind, ...
Read more >How do you tell Valgrind to completely suppress a ...
Is there a way to give Valgrind a single suppression rule to make it completely ignore a particular library? And even if there...
Read more >CheckStyle suppressions not working with config ...
In general, it seems to work fine with multiple files in the zip. Maybe a simple error message such as “File not found”...
Read more >Valgrind Suppression File Howto - WxWiki - wxWidgets
To check that valgrind is actually using the suppression files, run it with the -v option. The list of suppression files read is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, the suppressions are working now. Thanks again.
Wow, ok, weird indeed. Perhaps a typo in the version. But then now everything is working as expected right?