예제 #1
0
 public TestRunner(IRule rule)
 {
     CurrentRule = rule;
     CurrentRule.Initialize(this);
     Rules.Clear();
     Rules.Add(rule);
     IgnoreList = new BasicIgnoreList(this);
     Initialize();
 }
예제 #2
0
 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().Locati‌​on)*/, rules_library_name + ".dll"));
 }
예제 #3
0
 public GuiRunner(Wizard form)
 {
     wizard     = form;
     IgnoreList = new BasicIgnoreList(this);
 }