message: x: only check for newline at EOF if file isn't empty
  Closes:
diff: @@ -27,7 +27,7 @@ impl ContentLinter for EofNewline {
  Some(text) => text,
  None => return Ok(RunStatus::Skipped(SkipReason::NonUtf8)),
  };
  - if !content.ends_with('\n') {
  + if !content.is_empty() && !content.ends_with('\n') {
  out.write(LintLevel::Error, "missing newline at EOF");
  }
  Ok(RunStatus::Executed)
  