Questions tagged [suppression]

Suppression is a form of technical filtering (e.g. of alert messages, signals, ...) where some output is withheld from being displayed after being generated in order to reduce the overall amount of information. Compared to filtering, the suppressed items are not thrown away, they get just not displayed. This could be due to user's configuration/customization in some system settings or profile, configured by a set of rules.

67 questions
149
votes
3 answers

How can I suppress column header output for a single SQL statement?

I'm executing some SQL statements in batch (using the mysql command-line binary). I want one of my several SELECT statements to not print the column headers, just the selected records. Is this possible?
einpoklum
  • 118,144
  • 57
  • 340
  • 684
19
votes
3 answers

Excluding Code Analysis rule in source

In a project I'm working on FxCop shows me lots of (and I mean more than 400) errors on the InitializeComponent() methods generated by the Windows Forms designer. Most of those errors are just the assignment of the Text property of labels. I'd like…
16
votes
2 answers

Limit --memcheck To Your Own Code

Lets say I am using a library that uses glibc. When I exit the program while running it through Valgrind all sorts of memory leaks are detected by Valgrind. I am 100% sure that none of the leaks are explicitly related to my few lines of code I just…
Matthew Hoggan
  • 7,402
  • 16
  • 75
  • 140
16
votes
3 answers

Global suppression for entire solution (C#)

Does any one of you know a way I'd be able to suppress e.g. CA2000 for an entire solution? I'm thinking of something like a GlobalSuppressions class with the following line of code: [assembly: SuppressMessage("Microsoft.Reliability",…
GGMU
  • 161
  • 1
  • 3
10
votes
4 answers

Can I suppress all code analysis messages for a certain class?

Whenever I call my logger in a method, e.g. _logger.Debug("Connecting to database..."); I get the warning: CA1303 : Microsoft.Globalization: Method 'Database.Connect()' passes a literal string as parameter 'message' of a call to…
xsl
  • 17,116
  • 18
  • 71
  • 112
9
votes
3 answers

A semicolon to suppress output does not work in IPython

In the documentation at IPython Tips & Tricks, it says to put a semicolon (;) at the end of a command to suppress its output. This does not seem to work in my case as even a print('Hello'); outputs Hello Do I have the wrong idea of output…
Jonas
  • 145
  • 1
  • 4
9
votes
2 answers

"Suppress Warning" menuitem in Visual Studio 2010 is not available

I'm using Visual Studio 2010 Ultimate, and it seems that I cannot suppress warnings in the way I used in VS2008. My project is in C#, and when I right click a warning in the "Error List" window (e.g. for a missing XML-comment of a public type), I…
Gorgsenegger
  • 7,356
  • 4
  • 51
  • 89
8
votes
5 answers

What event do I need to supress to stop IE from "Dinging" when I press enter in a text box?

On simple forms with one text box pressing enter submits the form (and this is great for easy search forms) However on a form with multiple fields, pressing Enter in an input="text" box won't do anything (e.g. submit) but in IE it "Dings" as if you…
scunliffe
  • 62,582
  • 25
  • 126
  • 161
8
votes
7 answers

Sourcesafe command line options

I am having an issue with the Microsoft Visual Sourcesafe command line options that I'm hoping someone has run across and can assist me with. I have the following line in a DOS batch file. "c:\Program Files\Microsoft Visual SourceSafe\ss.exe" GET …
user26901
8
votes
1 answer

How can you get FxCop rule CA1726 to ignore a preferred term?

FxCop has a rule (CA1726) that checks for preferred terms. This looks for words like "Dont" and tells you to replace them with better words like "Do not". Generally this is fine, however one of the terms it objects to is "Flag". At our firm, the…
Martin Brown
  • 24,692
  • 14
  • 77
  • 122
7
votes
1 answer

How can you suppress checkstyle checks within a block of code only for specific rules?

Possible Duplicate: How to disable a particular checkstyle rule for a particular line of code? In turning off Checkstyle for a segment of code, is there a syntax that would suppress only specific checks. So rather than just //…
Daniel Holmes
  • 342
  • 1
  • 2
  • 13
7
votes
1 answer

JUnit tests: Suppress enum constructor by mocking?

I know that it is possible to mock a single enum(using How to mock an enum singleton class using Mockito/Powermock?), but I have like 1000 of enum values and they can call 5 different constructors. The enum values are often changing in…
keiki
  • 3,260
  • 3
  • 30
  • 38
6
votes
4 answers

Suppress the duplicate values in group, SSRS Reports

I have an SSRS report where the date should be grouped by project category the project code in the category is repeating in side the group how do I suppress the value Please help me to get an idea. Thanks,brijit
brijit
6
votes
1 answer

Exception self suppression error in try-with-resources not occuring from Eclipse

I have come across a troubling situation where I expect Java to complain (via an IllegalArgumentException from Throwable.addSuppressed) about throwing the same exception twice, once from within a try-with-resources block and once from the…
CoreyP
  • 133
  • 1
  • 6
5
votes
3 answers

OWASP Dependency check, how to use suppressions

I have a build in CI failing on a the OWASP dependency check. For example [HIGH] CVE-2021-37136 - io.netty:netty-codec-4.1.66.Final I understand I can add a suppression in owaspDependencyCheckSuppressions.xml to fix this. It's something I haven't…
Johnny Alpha
  • 758
  • 1
  • 8
  • 35
1
2 3 4 5