//do a grep of various files for common John Hatton mistakes private void ValidityCheck() { Grep.Grepper searcher = new Grep.Grepper(); searcher.IgnoreCase = true; searcher.LineNumbers = false; searcher.Recursive = true; searcher.RootDirectory = System.Environment.ExpandEnvironmentVariables(@"%fwroot%\src"); XmlNodeList list = m_configDocument.SelectNodes("//warningPatterns/pattern"); foreach (XmlNode node in list) { m_p4.WriteToConsole(node.Attributes["msg"].Value); searcher.Files = node.Attributes["filePattern"].Value; searcher.RegEx = node.Attributes["expression"].Value; m_p4.WriteToConsole(searcher.Search()); } }
//do a grep of various files for common John Hatton mistakes private void ValidityCheck () { Grep.Grepper searcher = new Grep.Grepper(); searcher.IgnoreCase= true; searcher.LineNumbers=false; searcher.Recursive = true; searcher.RootDirectory=System.Environment.ExpandEnvironmentVariables(@"%fwroot%\src"); XmlNodeList list =m_configDocument.SelectNodes("//warningPatterns/pattern"); foreach(XmlNode node in list) { m_p4.WriteToConsole(node.Attributes["msg"].Value); searcher.Files = node.Attributes["filePattern"].Value; searcher.RegEx=node.Attributes["expression"].Value; m_p4.WriteToConsole( searcher.Search()); } }