aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsbolint13
1 files changed, 6 insertions, 7 deletions
diff --git a/sbolint b/sbolint
index ce08f09..8166f39 100755
--- a/sbolint
+++ b/sbolint
@@ -818,15 +818,14 @@ sub check_and_read {
}
}
- if($crlf_err) {
- if($file =~ /\.(diff|patch)$/i) {
- log_error("$file has DOS-style CRLF line endings, git will mess it up unless you gzip it!") if $crlf_err;
- } else {
- log_error("$file has DOS-style CRLF line endings") if $crlf_err;
- }
+ if($file =~ /\.(diff|patch)$/i) {
+ log_error("$file has DOS-style CRLF line endings, git will mess it up unless you gzip it!") if $crlf_err;
+ # 20260523 bkw: do not complain if patches lack EOF at end!
+ } else {
+ log_error("$file has DOS-style CRLF line endings") if $crlf_err;
+ log_error("$file has no newline at EOF") if $lastline_nonl;
}
- log_error("$file has no newline at EOF") if $lastline_nonl;
return @lines;
}