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)); } }
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)); } }
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)); } }
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)); } }
public virtual void Visit(AddedLine line) { }