public override void Run() { if (AutoUpdateIgnore && !string.IsNullOrEmpty(IgnoreFile)) { // First run without ignore file so that we can discover unnecessary lines in // ignore file Log.LogMessage(MessageImportance.Normal, "AutoUpdateIgnore run"); base.Run(); var ignoreList = new EnhancedIgnoreFileList(this, IgnoreFile, AutoUpdateIgnore); ignoreList.UpdateIgnores(Defects); // now do it for real Defects.Clear(); IgnoreList = OriginalIgnoreList; IgnoreList = new EnhancedIgnoreFileList(this, IgnoreFile, false); } Log.LogMessage(MessageImportance.Low, "Starting Gendarme Code Analyzer"); base.Run(); }
public void AddIgnoreFile(string ignoreFile) { IgnoreFile = ignoreFile; if (!AutoUpdateIgnore) IgnoreList = new EnhancedIgnoreFileList(this, ignoreFile, AutoUpdateIgnore); }