summary refs log tree commit diff
path: root/xlint
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2014-10-11 21:21:23 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2014-10-11 21:21:23 +0200
commit63106028b4573a4952f6417b1558e09622a1f69f (patch)
treee79b9e017a4a707cca0fb208ee8f7010d5c0c691 /xlint
parent33827c8bac5f8c37b31bceed18a7b0e42fc4542c (diff)
downloadxtools-63106028b4573a4952f6417b1558e09622a1f69f.tar.gz
xtools-63106028b4573a4952f6417b1558e09622a1f69f.tar.xz
xtools-63106028b4573a4952f6417b1558e09622a1f69f.zip
xlint: detect empty variables
Diffstat (limited to 'xlint')
-rwxr-xr-xxlint1
1 files changed, 1 insertions, 0 deletions
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