Hi all,
When using Code Analysis and Code Contracts in combination, I get a lot of warnings like
warning : CA1062 : Microsoft.Design : In externally visible method 'Foo.Bar(Log)', validate parameter 'log' before using it.
In Foo.Bar, I have a Contract that validates 'log'.
public Bar(Log log){
Contract.Requires(log != null);
log.Lines.Add(...);
...
}
Is there a way to make FxCop understand Code Contracts?
/Staffan