From 5c865cd49f285699912df2632a8d29729e3c43c6 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Tue, 31 Mar 2015 13:28:35 +0200 Subject: xlint: tune lints. --- xlint | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'xlint') diff --git a/xlint b/xlint index c8102c0..de708af 100755 --- a/xlint +++ b/xlint @@ -135,8 +135,9 @@ for template; do scan '^ ' "indent with tabs" | once scan '[\t ]$' "trailing whitespace" scan '`' "use \$() instead of backticks" - scan 'replaces=[^<>]*$' "replaces needs depname with version" - scan 'conflicts=[^<>]*$' "conflicts needs depname with version" + scan 'revision=0' "revision must not be zero" + scan 'replaces=(?=.*\w)[^<>]*$' "replaces needs depname with version" + scan 'conflicts=(?=.*\w)[^<>]*$' "conflicts needs depname with version" scan 'maintainer=(?!.*<.*@.*>).*' "maintainer needs email address" scan 'nonfree=' "use repository=nonfree" scan '^(?!\s*('"$variables"'))[^\s=-]+=' \ -- cgit 1.4.1