aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-06-08 03:41:26 -0400
committerB. Watson <urchlay@slackware.uk>2026-06-08 03:41:26 -0400
commit792526bb2cf059faf98db28f7d06d92512076777 (patch)
tree05d825e35f416fe79e73edb0d3e3503fef64126d
parentca4c5eb1e1cf330aaf79f5973cb6a65dd225d63d (diff)
downloadsbo-maintainer-tools-792526bb2cf059faf98db28f7d06d92512076777.tar.gz
Allow >72 char lines in README if prefixed with a "$ " or "# " (commands, with prompt).
-rwxr-xr-xsbolint4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbolint b/sbolint
index 0307433..8a35705 100755
--- a/sbolint
+++ b/sbolint
@@ -931,7 +931,9 @@ sub check_readme {
# 20220205 bkw: don't complain about long lines if they're URLs,
# not much we can do about them.
- if(grep { !/^\s*(ftp|https?):\/\// && length > $maxlen } @lines) {
+ # 20260608 bkw: also commands beginning with a prompt character,
+ # # or $.
+ if(grep { !/^[#\$] / && !/^\s*(ftp|https?):\/\// && length > $maxlen } @lines) {
log_warning("README has lines >$maxlen characters");
}
}