1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tests: add .vv support for v vet too, and simplify vet_test.v

This commit is contained in:
Delyan Angelov
2020-08-25 18:46:33 +03:00
parent 86dfd3902f
commit 55fdae77d5
6 changed files with 12 additions and 12 deletions

View File

@@ -37,11 +37,15 @@ fn main() {
eprintln('skipping $path')
continue
}
if path.ends_with('.v') {
if path.ends_with('.v') || path.ends_with('.vv') {
vet_options.vet_file(path)
} else if os.is_dir(path) {
vet_options.vprintln("vetting folder '$path'...")
files := os.walk_ext(path, '.v')
vfiles := os.walk_ext(path, '.v')
vvfiles := os.walk_ext(path, '.vv')
mut files := []string{}
files << vfiles
files << vvfiles
for file in files {
if file.ends_with('_test.v') || file.contains('/tests/') { // TODO copy pasta
continue