From d9a71e0c17a53c08420902ee482df45a2c1b8324 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Fri, 12 Aug 2022 19:31:57 -0400 Subject: xlint: check if vopt_if can be vopt_bool fixes #257 Closes: #258 [via git-merge-pr] --- xlint | 1 + 1 file changed, 1 insertion(+) (limited to 'xlint') diff --git a/xlint b/xlint index 9726354..61d5e9d 100755 --- a/xlint +++ b/xlint @@ -481,6 +481,7 @@ for argument; do 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' + scan '-D([[:alnum:]_-]+)=\$\(vopt_if \1 true false\)' 'use $(vopt_bool ...) instead of -D...=$(vopt_if ...)' variables_order header file_end -- cgit 1.4.1