about summary refs log tree commit diff
path: root/xlint
diff options
context:
space:
mode:
authorclassabbyamp <void@placeviolette.net>2022-08-12 19:31:57 -0400
committerLeah Neukirchen <leah@vuxu.org>2022-08-13 15:20:47 +0200
commitd9a71e0c17a53c08420902ee482df45a2c1b8324 (patch)
tree1206060db49646e9c26bfa32c1801d09ad1a26bc /xlint
parente3e776ae0c6d6d8b74810dc381cbb621c635e184 (diff)
downloadxtools-d9a71e0c17a53c08420902ee482df45a2c1b8324.tar.gz
xtools-d9a71e0c17a53c08420902ee482df45a2c1b8324.tar.xz
xtools-d9a71e0c17a53c08420902ee482df45a2c1b8324.zip
xlint: check if vopt_if can be vopt_bool
fixes #257

Closes: #258 [via git-merge-pr]
Diffstat (limited to 'xlint')
-rwxr-xr-xxlint1
1 files changed, 1 insertions, 0 deletions
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