コード例 #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));
     }
 }
コード例 #2
0
 public override void Visit(AddedLine line)
 {
     base.Visit(line);
     if (line.Line.Contains('\t'))
     {
         Comments.Add(new DiffComment("Tab character found", CurrentNewFile, CurrentNewFileLineNumber));
     }
 }
コード例 #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));
     }
 }
コード例 #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));
     }
 }
コード例 #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));
     }
 }
コード例 #6
0
 public virtual void Visit(AddedLine line)
 {
 }