public List <string> CodeValidate(string RawCode, string Language) { List <string> Violations = new List <string>(); List <string> Rules = new List <string>(); string[] sLOC = RawCode.Split(';', '\n'); foreach (string Line in sLOC) { MessageBox.Show(Line); Rules = caObj.getRules(Line, Language); string Violation; foreach (string Rule in Rules) { Violation = caObj.checkViolation(Line, Rule); if (!Violation.Equals("")) { Violations.Add(Violation); } } } return(Violations); }