aboutsummaryrefslogtreecommitdiff
path: root/sbolint
diff options
context:
space:
mode:
Diffstat (limited to 'sbolint')
-rwxr-xr-xsbolint9
1 files changed, 7 insertions, 2 deletions
diff --git a/sbolint b/sbolint
index 9e16dea..34d156f 100755
--- a/sbolint
+++ b/sbolint
@@ -867,10 +867,15 @@ sub check_slackdesc {
log_error("slack-desc:$lineno: wrong prefix '$prefix', should be '$buildname:'");
} elsif($text =~ /^\s+$/) {
log_error("slack-desc:$lineno: trailing whitespace after colon, on otherwise-blank line");
- } elsif(length($text) > 71) {
- log_error("slack-desc:$lineno: text too long, %d characters, should be <= 71", length($text));
} elsif(length($text) && $text !~ /^ /) {
log_error("slack-desc:$lineno: missing whitespace after colon, on non-blank line");
+ } else {
+ if($text =~ /\s$/) {
+ log_error("slack-desc:$lineno: trailing whitespace on description line");
+ }
+ if(length($text) > 71) {
+ log_error("slack-desc:$lineno: text too long, %d characters, should be <= 71", length($text));
+ }
}
my $bn = quotemeta($buildname); # some builds have + in the name