diff options
author | Jan Christian Grünhage <jan.christian@gruenhage.xyz> | 2022-06-10 12:09:14 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2022-06-18 23:40:20 +0200 |
commit | 008a65e1ab0b9b4f37d7b119a739864abb67b754 (patch) | |
tree | bdcf3c522c8c689312a441f13bbb2a47a61df884 | |
parent | ee330419a57189c5adb53fe24888cdd572ec4610 (diff) | |
download | xtools-008a65e1ab0b9b4f37d7b119a739864abb67b754.tar.gz xtools-008a65e1ab0b9b4f37d7b119a739864abb67b754.tar.xz xtools-008a65e1ab0b9b4f37d7b119a739864abb67b754.zip |
xlint: require specifying versions when using cargo update
Closes: #249 [via git-merge-pr]
-rwxr-xr-x | xlint | 2 |
1 files changed, 2 insertions, 0 deletions
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 |