about summary refs log tree commit diff
path: root/xlint
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2015-03-31 13:28:35 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2015-03-31 13:28:35 +0200
commit5c865cd49f285699912df2632a8d29729e3c43c6 (patch)
tree2f4e3968cd268a187eae16c33b1b2eece7a64f25 /xlint
parentf7adb88147d88366efbd1f63bb11e454231eb51e (diff)
downloadxtools-5c865cd49f285699912df2632a8d29729e3c43c6.tar.gz
xtools-5c865cd49f285699912df2632a8d29729e3c43c6.tar.xz
xtools-5c865cd49f285699912df2632a8d29729e3c43c6.zip
xlint: tune lints. v0.19
Diffstat (limited to 'xlint')
-rwxr-xr-xxlint5
1 files changed, 3 insertions, 2 deletions
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=-]+=' \