I am facing one problem while implementing IConfigurable interface.
My program is throwing an error that I need to implement an interface member DefaultSettings of Microsoft.Tools.FxCop.Sdk.IConfigurableRule.
I didn't get any pointers regarding this member (DefaultSettings) in FxCop Doc.
Any pointers on how to implement it will be really helpful.
Below is the class which is throwing this error:-
----------------------------------------------------------------------
using System;
using System.Xml;
using System.Reflection;
using System.Collections;
using Microsoft.Cci;
using Microsoft.Tools.FxCop.Sdk;
using Microsoft.Tools.FxCop.Sdk.Introspection;
namespace CamelCasing
{
[CLSCompliant(false)]
public class LocalVariableNaming : CamelCasingRule, IConfigurableRule
{
public override ProblemCollection Check(Member memberMethod)
{
if (NodeType == NodeType.Method)
{
InstructionList instructions = memberMethod.Instructions;
if(instructions.Length == 0)
return null;
Locallist locals = instructions[0].value as Locallist;
if(locals == null)
return null;
ProblemCollection problems = this.Problems;
for(int index=0; index < locals.Length; index++)
{
Local local = locals[index];
string name = local.Name.Name;
if(name.Substring(0,1) == name.ToUpper().Substring(0,1))
{
// That's an error
problems.add(GetResolution(name));
}
}
return problems;
}
else
return null;
}
}
}