From 8f5089895200ade16e04986b71feb8c3bcb75ef4 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 15 Sep 2026 00:52:16 -0400 Subject: sbolint: check for whitespace in .info file VERSION; check for invalid chars in REQUIRES. --- sbolint | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sbolint b/sbolint index db3535c..16b82f2 100755 --- a/sbolint +++ b/sbolint @@ -1221,10 +1221,18 @@ sub check_info { log_error("$file: PRGNAM has invalid characters, only A-Z, a-z, 0-9, - + . _ are allowed"); } + if($info{REQUIRES} =~ /[^- +._A-Za-z0-9]/) { + log_error("$file: REQUIRES has invalid characters, only space, A-Z, a-z, 0-9, - + . _ are allowed"); + } + if($info{VERSION} =~ /-/) { log_error("$file: VERSION may not contain - (dash) characters"); } + if($info{VERSION} =~ / /) { + log_error("$file: VERSION may not contain whitespace"); + } + if(!check_url($info{HOMEPAGE})) { log_error("$file: HOMEPAGE=\"%s\" doesn't look like a valid URL (http, https, or ftp)", $info{HOMEPAGE}); } -- cgit v1.2.3