On Monday, April 11, 2011 11:40:29 AM UTC-4, Sakthivel wrote:
Is Gendarme code analysis rules supported for VB.NET code/language?
Gendarme can analyze any .NET assembly, in any language, since it works at the IL level.
Gendarme also tries to use language-neutral terms (generally metadata/IL from ECMA specs) in its rule names and documentation. However almost all code examples are in C#. Most of them are simple enough that show the 'bad' and 'good' patterns without being too locked into C# syntax.
How to suppress the rules violating message in code?
The latest (2.10) Gendarme can, with some minor limitations (e.g. some scope limitations), use the [SuppressMessage] attribute (same as FxCop) to ignore defects inside code. You also have the option (if you use the console runner) to keep an ignore file (in text format).
Sebastien