Questions tagged [gendarme]

Gendarme is a tool to find defects inside .NET (ECMA CIL) applications and libraries.

Gendarme is a tool to find defects inside applications and libraries. Gendarme inspects assemblies code and metadata in ECMA CIL format (Mono and .NET) and looks for common problems with the code, problems that compiler do not typically check or have not historically checked. Gendarme uses the Cecil library to introspect code.

28 questions
10
votes
3 answers

Are there good reasons for letting AssemblyVersion and AssemblyFileVersion match?

Gendarme has an AvoidAssemblyVersionMismatchRule with the following description: This rule checks that the [AssemblyVersion] matches the [AssemblyFileVersion] when both are present inside an assembly. Having different version numbers in both…
Christian
  • 9,914
  • 6
  • 45
  • 52
7
votes
3 answers

How to Suppress Gendarme Defects?

Is it possible to suppress a specific gendarme defect message? I would like to do this in the source code with a flag or something like it.
7
votes
4 answers

What rule do you wish FxCop/Gendarme had?

What definable static code checking rule do you wish to see added to FxCop and/or Gendarme? Why to do you wish to see the rule added, e.g what are the benefits etc? How could your rule be implemented?
Ian Ringrose
  • 51,220
  • 55
  • 213
  • 317
5
votes
1 answer

Are there any tools to perform a security analysis against .net desktop assemblies and excutables?

Are there any tools to perform a security analysis against .net desktop assemblies and excutables? I used FXCOP and Gendarme but i think they are not sufficient.
Ahmed_A
  • 87
  • 8
3
votes
2 answers

Gendarme vs FxCop

Gendarme and FxCop look very similar and seem to tackle the same problem. Which would you suggest for a small team of developers (3-5) mainly working on web application with lots of business logic? Why?
niaher
  • 9,460
  • 7
  • 67
  • 86
3
votes
2 answers

Gendarme Ignore List Format

I'm working on a C# solution and I'm using Gendarme integrated with Visual Studio in order to output to the Error List window when I compile. I can see in the source-code and documentation for Gendarme that you can specify an ignore list to get…
Apogee
  • 276
  • 1
  • 11
3
votes
1 answer

Gendarme Rules Customisation

Does anyone know the correct way to explicitly specify which rules Gendarme will use? Or which rules to exclude? I'm not having a lot of joy searching the Mono documentation for the answer. What I'm trying to do is to specify the rules one by one in…
Apogee
  • 276
  • 1
  • 11
3
votes
1 answer

How can you set Gendarme to run with Teamcity when doing a build?

I have set up a Teamcity server for start working with Continous Integration and having daily builds and also when VCS check-in is detected. Me and my team is now working on a videogame, we are using Unity as the game engine and C# as programming…
3
votes
2 answers

C#, Gendarme, Sonar and Jenkins : Exclude generated files from Gendarme

I'm working with gendarme for .net called by Sonar (launched by Jenkins). I've a lot of AvoidVisibleFieldsRule violations. The main violations are found in the generated files. As I can't do anything on it, i would like to exclude *.designer.cs from…
Julien
  • 31
  • 2
2
votes
2 answers

Could not load file or assembly ... from SatelliteResourceMismatchRule

We've recently updated our C# projects from .NET 3.5 to 4.0. We run Gendarme on our local machines and on CC.NET. After updating all of our projects, Gendarme is is getting this error for one of our assemblies (with logging turned on): An uncaught…
2
votes
1 answer

Gendarme unsafe code detection

Anyone familiar with Gendarme know if it's possible to create a rule that detects C# unsafe code?
2
votes
1 answer

Sonar, Gendarme plugin issue

I'm new in sonar. I have problems when I use gendarme rules, but without those rules, it works fine. This is the error in debug mode (sonar-runner -X): 14:19:22.637 DEBUG - No assembly specified: will look into 'csproj' files to find which…
2
votes
0 answers

Gendarme integration with visual studio 2010 premium

I am new to using Gendarme. I downloaded this version of the tool (Gendarme 2.11 (unsupported build - Win32 - Requires .NET Framework 4.0)) from https://github.com/spouliot/gendarme/downloads and it worked fine as an independent app. But I want to…
Aum
  • 293
  • 3
  • 17
2
votes
2 answers

Monitor 3rd party assembly usage with Sonar

I have a client with a fairly large (> 150 solutions) code base. They have a list of approved third party assemblies their developers can use, and they would like to use Sonar to help identify projects that are using assemblies that are not on the…
kiprainey
  • 3,241
  • 4
  • 29
  • 29
1
vote
1 answer

How to suppress specific Gendarme rules at project or assembly level

I need to suppress unwanted gendarme rules for the whole assembly of my project or even for individual projects. Is there any option available? Thanks in advance.
1
2