Esempio n. 1
0
        //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());
            }
        }
Esempio n. 2
0
		//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());
			}

		}