From 008a65e1ab0b9b4f37d7b119a739864abb67b754 Mon Sep 17 00:00:00 2001 From: Jan Christian Grünhage Date: Fri, 10 Jun 2022 12:09:14 +0200 Subject: xlint: require specifying versions when using cargo update Closes: #249 [via git-merge-pr] --- xlint | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlint') diff --git a/xlint b/xlint index f5e288a..0585960 100755 --- a/xlint +++ b/xlint @@ -479,6 +479,8 @@ for argument; do scan '^wrksrc="?(\$\{?pkgname\}?|'$pkgname_re')-(\$\{?version\}?|'$version_re')"?$' 'unnecessary wrksrc definition' scan "distfiles=.*\Q$version_re\E" 'use ${version} in distfiles instead' scan "system_accounts=.*\b(?!($old_accounts))[a-zA-Z]" 'new accounts should be prefixed with underscore' + scan "cargo update (--package|-p) [A-Za-z_][A-Za-z0-9_]*(?!\:[0-9]+\.[0-9]+\.[0-9]+)(\s.+)?$" '"cargo update" commands should include the specific version we are updating from in the --package SPEC' + scan "cargo update (--package|-p) [A-Za-z_][A-Za-z0-9_-]*\:[0-9]+\.[0-9]+\.[0-9]+(?!--precise [0-9]+\.[0-9]+\.[0-9]+)$" '"cargo update" commands should include the specific version we are updating to, using --precise' variables_order header file_end -- cgit 1.4.1