public TestRunner(IRule rule) { CurrentRule = rule; CurrentRule.Initialize(this); Rules.Clear(); Rules.Add(rule); IgnoreList = new BasicIgnoreList(this); Initialize(); }
public DevAuditGendarmeRunner(AssemblyDefinition assembly, string rules_library_name, ScriptEnvironment environment) { this.Environment = environment; // this will force cecil to load all the modules, which will throw (like old cecil) a FNFE // if a .netmodule is missing (otherwise this exception will occur later in several places) if (assembly.Modules.Count > 0) { Assemblies.Add(assembly); } IgnoreList = new BasicIgnoreList(this); LoadRulesFromAssembly(Path.Combine(AppDomain.CurrentDomain.BaseDirectory /*Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)*/, rules_library_name + ".dll")); }
public GuiRunner(Wizard form) { wizard = form; IgnoreList = new BasicIgnoreList(this); }