Exemplo n.º 1
0
        private string StyleCheck(Assignment homework)
        {
            StringBuilder result   = new StringBuilder();
            StyleExecutor executor = new StyleExecutor();

            foreach (string file in homework.FileNames)
            {
                string errors = executor.Run(homework.Path + file);

                result.AppendFormat("File: {0}\n", file);
                result.AppendFormat("{0}\n", errors);
            }

            return(JarvisEncoding.ToHtmlEncoding(result.ToString()));
        }
Exemplo n.º 2
0
 public IndentationChecker(StyleExecutor executor) : base(executor)
 {
     // empty
 }
Exemplo n.º 3
0
 protected AbstractStyleChecker(StyleExecutor executor)
 {
     this.executor = executor;
 }