public static API_CatNet_GUI scanAssembly(this API_CatNet_GUI catNetGui, string file) { catNetGui.SolutionLoaded = ""; catNetGui.TriggerOnSelectedEvent = false; var catNet = new API_CatNet().loadRules(); var savedReport = catNet.scan(file).savedReport(); catNetGui.openReport(savedReport); return(catNetGui); }
public static API_CatNet_GUI scanSolution(this API_CatNet_GUI catNetGui, string solutionFile) { catNetGui.TriggerOnSelectedEvent = true; catNetGui.SolutionLoaded = solutionFile; var catNet = new API_CatNet().loadRules(); var assemblies = solutionFile.compileSolution(); var savedReport = catNet.scan(assemblies).savedReport(); catNetGui.openReport(savedReport); return(catNetGui); }
public static API_CatNet_GUI scanCSharpFile(this API_CatNet_GUI catNetGui, string file) { catNetGui.SolutionLoaded = ""; catNetGui.TriggerOnSelectedEvent = false; var catNet = new API_CatNet().loadRules(); var assembly = new CompileEngine().compileSourceFile(file); if (assembly.notNull()) { catNetGui.openReport(catNet.scan(assembly).savedReport()); } else { catNetGui.CodeViewer.open(file); } return(catNetGui); }
public static API_CatNet scan(this API_CatNet catNet, Assembly assemblyToScan) { return(catNet.scan(new List <Assembly>().add(assemblyToScan))); }
public static API_CatNet scan_Assembly(this API_CatNet catNet, Assembly assemblyToScan) { return(catNet.scan(assemblyToScan)); }