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 all Roslyn-detected C# warning classes shipped with CodeSonar.
See also C# Warning Classes, 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.
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 presets are especially relevant to the Roslyn-detected C# warning classes. Each enables a set of classes corresponding to a ruleset in microsoft.codeanalysis.netanalyzers 8.0.0.
| Preset | Corresponding microsoft.codeanalysis.netanalyzers 8.0.0 ruleset |
|---|---|
| csharp_roslyn_allrulesdefault | allrulesdefault |
| csharp_roslyn_allrulesenabled | allrulesenabled |
| csharp_roslyn_designrulesdefault | designrulesdefault |
| csharp_roslyn_globalizationrulesdefault | globalizationrulesdefault |
| csharp_roslyn_interoperabilityrulesdefault | interoperabilityrulesdefault |
| csharp_roslyn_maintainabilityrulesdefault | maintainabilityrulesdefault |
| csharp_roslyn_performancerulesdefault | performancerulesdefault |
| csharp_roslyn_portedfromfxcoprulesdefault | portedfromfxcoprulesdefault |
| csharp_roslyn_reliabilityrulesdefault | reliabilityrulesdefault |
| csharp_roslyn_usagerulesdefault | usagerulesdefault |
There is a Roslyn-detected C# warning class corresponding to each Roslyn analyzer diagnostic.
For example, warning class Do not declare static members on generic types (C#) has mnemonic ROSLYN.DESIGN.CA1000: the corresponding Roslyn analyzer diagnostic has Title "Do not declare static members on generic types", Category "Design", and ID "CA1000".
To report problems with this documentation, please visit https://support.codesecure.com/.