From 63106028b4573a4952f6417b1558e09622a1f69f Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Sat, 11 Oct 2014 21:21:23 +0200 Subject: xlint: detect empty variables --- xlint | 1 + 1 file changed, 1 insertion(+) diff --git a/xlint b/xlint index dea7eae..85bf5f4 100755 --- a/xlint +++ b/xlint @@ -94,4 +94,5 @@ for template; do scan 'maintainer=(?!.*<.*@.*>).*' "maintainer needs email address" scan '^(?!\s*('"$(echo -n "$variables" | tr '\n' '|')"'))[^\s=-]+=' \ "custom variables should use _ prefix: \2" -1 + scan '^[^ =]*=(""|''|)$' "variable set to empty string: \2" -1 done -- cgit 1.4.1