JavaScript is not currently enabled, but is required for full CodeSonar manual search and browse functionality.
If you are viewing this file in your hub's Web GUI, enable JavaScript in your browser: you will also need it for GUI functionality.
If you opened this file directly from disk, your browser may be directly suppressing JavaScript functionality: certain browsers perform this suppression on local files (but not files delivered by web servers) for security reasons.
| CodeSonar® 9.2p0 | CONFIDENTIAL | CodeSecure Inc |
This page lists the built-in, CodeSonar-detected C# warning classes for CodeSonar.
Warning classes detected by Roslyn are not discussed on this page:
see Roslyn-Detected C# Warning
Classes.
See also C/C++ Warning Classes, Java Warning Classes.
Important Note: CodeSonar projects are built from Microsoft C# assembly code (.exe or .dll files) and debug information (.pdb files). However, CodeSonar will only analyze those parts of the project for which corresponding source code (.cs files) is also available, because warning reports are not useful or comprehensible without source information.
We divide the C# warning classes shipped with CodeSonar into two groups.
The CodeSonar-detected C# warning classes can be further subdivided into four groups.
The table of C# warning classes that are disabled by default, below, specifies the security/deep/pedantic designation for each warning class.
There are several configuration presets that are specific to the C# analysis, as well as a number of presets that apply across all analyzed source languages.
The following are especially relevant to the CodeSonar-detected C# warning classes.
| Preset | Notes |
|---|---|
| csharp_complete | Enables all CodeSonar-detected C# warning classes |
| csharp_security, csharp_deep, csharp_pedantic | Enable the security, deep, and pedantic CodeSonar-detected C# warning classes, respectively. |
The following warning classes are supported for all languages, including C#.
| Class Name | Mnemonic |
|---|---|
| Copy-Paste Error | MISC.CPE |
To report problems with this documentation, please visit https://support.codesecure.com/.