Skip to content
This repository was archived by the owner on Mar 21, 2022. It is now read-only.

Commit 5e97810

Browse files
committed
test: suppress EVL103 for _ args
If an argument name begins with an underscore, it is unused by convention. Don't warn about these. Signed-off-by: Kevin Locke <[email protected]>
1 parent 6bca8f1 commit 5e97810

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

run-tests.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@ if ! [ -d build/vim-vimlint ]; then
3030
fi
3131

3232
# Run vimlint
33-
./build/vim-vimlint/bin/vimlint.sh -l build/vim-vimlint -p build/vim-vimlparser "$@"
33+
# Ignore EVL103 (unused argument) for argument names starting with _
34+
./build/vim-vimlint/bin/vimlint.sh \
35+
-l build/vim-vimlint \
36+
-p build/vim-vimlparser \
37+
-e 'EVL103.a:_.*=1' \
38+
"$@"
3439

3540
# Ensure vint is available, then run it
3641
if command -v vint >/dev/null; then

0 commit comments

Comments
 (0)