diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-06-08 03:41:26 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-06-08 03:41:26 -0400 |
| commit | 792526bb2cf059faf98db28f7d06d92512076777 (patch) | |
| tree | 05d825e35f416fe79e73edb0d3e3503fef64126d | |
| parent | ca4c5eb1e1cf330aaf79f5973cb6a65dd225d63d (diff) | |
| download | sbo-maintainer-tools-792526bb2cf059faf98db28f7d06d92512076777.tar.gz | |
Allow >72 char lines in README if prefixed with a "$ " or "# " (commands, with prompt).
| -rwxr-xr-x | sbolint | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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"); } } |
