diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2015-03-31 13:28:35 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2015-03-31 13:28:35 +0200 |
commit | 5c865cd49f285699912df2632a8d29729e3c43c6 (patch) | |
tree | 2f4e3968cd268a187eae16c33b1b2eece7a64f25 | |
parent | f7adb88147d88366efbd1f63bb11e454231eb51e (diff) | |
download | xtools-5c865cd49f285699912df2632a8d29729e3c43c6.tar.gz xtools-5c865cd49f285699912df2632a8d29729e3c43c6.tar.xz xtools-5c865cd49f285699912df2632a8d29729e3c43c6.zip |
xlint: tune lints. v0.19
-rwxr-xr-x | xlint | 5 |
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=-]+=' \ |