From 3b5d56278fd9954bb6feeec75422f342456b0dc0 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Wed, 12 Aug 2020 18:56:06 +0200 Subject: [PATCH] vet: skip tests --- cmd/tools/vvet.v | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/tools/vvet.v b/cmd/tools/vvet.v index 1201b4ef93..878ddabe4f 100644 --- a/cmd/tools/vvet.v +++ b/cmd/tools/vvet.v @@ -29,12 +29,19 @@ fn main() { is_verbose: '-verbose' in args || '-v' in args } for path in paths { + println(path) + if path.ends_with('_test.v') || path.contains('/tests/') { + continue + } if path.ends_with('.v') { vet_options.vet_file(path) } else if os.is_dir(path) { vet_options.vprintln("vetting folder '$path'...") files := os.walk_ext(path, '.v') for file in files { + if file.ends_with('_test.v') || file.contains('/tests/') { // TODO copy pasta + continue + } vet_options.vet_file(file) } }