Example #1
0
 public override void Visit(AddedLine line)
 {
     base.Visit(line);
     if (m_Regex.IsMatch(line.Line))
     {
         Comments.Add(new DiffComment(m_Message, CurrentNewFile, CurrentNewFileLineNumber));
     }
 }
 public override void Visit(AddedLine line)
 {
     base.Visit(line);
     if (line.Line.Contains('\t'))
     {
         Comments.Add(new DiffComment("Tab character found", CurrentNewFile, CurrentNewFileLineNumber));
     }
 }
Example #3
0
 public override void Visit(AddedLine line)
 {
     base.Visit(line);
     if (line.Line.Length > m_Chars)
     {
         Comments.Add(new DiffComment("Long line found (>" + m_Chars + " chars)", CurrentNewFile, CurrentNewFileLineNumber));
     }
 }
Example #4
0
 public override void Visit(AddedLine line)
 {
     base.Visit(line);
     if (CurrentNewFile.EndsWith("app.config", StringComparison.InvariantCultureIgnoreCase))
     {
         Comments.Add(new DiffComment("App.config edited", CurrentNewFile, CurrentNewFileLineNumber));
     }
 }
Example #5
0
 public override void Visit(AddedLine line)
 {
     base.Visit(line);
     // hack: we split on '\n' so we expect \r to be left over
     if (!line.Line.EndsWith("\r"))
     {
         Comments.Add(new DiffComment("Unix newline found", CurrentNewFile, CurrentNewFileLineNumber));
     }
 }
Example #6
0
 public virtual void Visit(AddedLine line)
 {
 }