From e0a5ba96b84832610263d6a236077ab1cf74d653 Mon Sep 17 00:00:00 2001 From: Piotr Wójcik Date: Fri, 26 Oct 2018 18:54:45 +0200 Subject: xlint: Refuse quoted pkgname and version Except when they use variable substitution --- xlint | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlint') diff --git a/xlint b/xlint index d86c81b..ff40424 100755 --- a/xlint +++ b/xlint @@ -156,9 +156,11 @@ for template; do scan '^ ' "indent with tabs" | once scan '[\t ]$' "trailing whitespace" scan '[^\\]`' "use \$() instead of backticks" + scan '^pkgname="[^$]+"' "pkgname must not be quoted" scan 'revision=0' "revision must not be zero" scan '^version=.*[:-].*' "version must not contain the characters : or -" scan '^version=.*\${.*[:!#%/^,@].*}.*' "version must not use shell variable substitution mechanism" + scan '^version="[^$]+"' "version must not be quoted" scan '^reverts=.*-.*' "reverts must not contain package name" scan '^reverts=(?!.*_.*).*' "reverts without revision" scan 'replaces=(?=.*\w)[^<>]*$' "replaces needs depname with version" -- cgit 1.4.1