Skip to content

Suppressions

Gabe Stocco edited this page Aug 6, 2023 · 1 revision

Suppressing Issues

If DevSkim is reporting an issue and you want to suppress it you can either use the Suppress command to suppress it or manually add a suppression comment to the end of the line of source code where the issue is detected.

For example to ignore the rule DS0000 in a language where # starts an inline comment add # DevSkim: ignore DS0000 to the end of the line.

Suppressing multiple issues on a single line

To suppress multiple issues on a single line list the identifiers with no spaces. For example: # DevSkim: ignore DS0000,DS00001