about summary refs log tree commit diff
path: root/xlint
diff options
context:
space:
mode:
authorMichael Gehring <mg@ebfe.org>2017-07-16 20:48:18 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-07-17 14:33:17 +0200
commit069a46503f4ff46a74cbfcd63a549d065c6cb40d (patch)
treec487fddc0f83a054a473b378ae7683988ae9047b /xlint
parent6f2bc356096c89e32f259f97bdffe2b8c7c4f4c2 (diff)
downloadxtools-069a46503f4ff46a74cbfcd63a549d065c6cb40d.tar.gz
xtools-069a46503f4ff46a74cbfcd63a549d065c6cb40d.tar.xz
xtools-069a46503f4ff46a74cbfcd63a549d065c6cb40d.zip
xlint: add sanity check for reverts
Closes: #62 [via git-merge-pr]
Diffstat (limited to 'xlint')
-rwxr-xr-xxlint2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlint b/xlint
index 6719cce..54de851 100755
--- a/xlint
+++ b/xlint
@@ -153,6 +153,8 @@ for template; do
 	scan '[^\\]`' "use \$() instead of backticks"
 	scan 'revision=0' "revision must not be zero"
 	scan '^version=.*[:-].*' "version must not contain the characters : or -"
+	scan '^reverts=.*-.*' "reverts must not contain package name"
+	scan '^reverts=(?!.*_.*).*' "reverts without revision"
 	scan 'replaces=(?=.*\w)[^<>]*$' "replaces needs depname with version"
 	scan 'maintainer=(?!.*<.*@.*>).*' "maintainer needs email address"
 	scan 'maintainer=.*<.*@users.noreply.github.com>.*' "maintainer needs a valid address for sending mail"