Is Gendarme code analysis rules works for VB.NET language

71 views
Skip to first unread message

Sakthivel

unread,
Apr 11, 2011, 11:40:29 AM4/11/11
to Gendarme
Is Gendarme code analysis rules supported for VB.NET code/language?

How to suppress the rules violating message in code?

Sebastien Pouliot

unread,
Apr 11, 2011, 6:55:25 PM4/11/11
to gend...@googlegroups.com
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

Andrew Hanson

unread,
Jun 1, 2011, 2:38:57 PM6/1/11
to gend...@googlegroups.com
Just to throw my hat in the ring, I've been using Gendarme pretty heavily for a few months now on multiple VB projects.  It's not always perfect, but I can certainly try to help you out if Gendarme is acting funky and you're not quite sure what's up.  Great product btw, and so happy to have it around to use.
Reply all
Reply to author
Forward
0 new messages