Exemplo n.º 1
0
 internal static void CodeCommented(List <KBObject> objs, IOutputService output)
 {
     foreach (KBObject obj in objs)
     {
         string source = Utility.ObjectSourceUpper(obj);
         source = Utility.RemoveEmptyLines(source);
         string codeCommented = Utility.CodeCommented(source);
         codeCommented = codeCommented.Replace("'", "");
         codeCommented = codeCommented.Replace(">", "");
         codeCommented = codeCommented.Replace("<", "");
         if (codeCommented != "")
         {
             KBObjectPart part = Utility.ObjectSourcePart(obj);
             OutputError  err  = new OutputError("Commented code", MessageLevel.Warning, new KBObjectPosition(part));
             output.Add("KBDoctor", err);
         }
     }
 }