vet: skip tests
parent
f8be2110ec
commit
3b5d56278f
cmd/tools
|
@ -29,12 +29,19 @@ fn main() {
|
||||||
is_verbose: '-verbose' in args || '-v' in args
|
is_verbose: '-verbose' in args || '-v' in args
|
||||||
}
|
}
|
||||||
for path in paths {
|
for path in paths {
|
||||||
|
println(path)
|
||||||
|
if path.ends_with('_test.v') || path.contains('/tests/') {
|
||||||
|
continue
|
||||||
|
}
|
||||||
if path.ends_with('.v') {
|
if path.ends_with('.v') {
|
||||||
vet_options.vet_file(path)
|
vet_options.vet_file(path)
|
||||||
} else if os.is_dir(path) {
|
} else if os.is_dir(path) {
|
||||||
vet_options.vprintln("vetting folder '$path'...")
|
vet_options.vprintln("vetting folder '$path'...")
|
||||||
files := os.walk_ext(path, '.v')
|
files := os.walk_ext(path, '.v')
|
||||||
for file in files {
|
for file in files {
|
||||||
|
if file.ends_with('_test.v') || file.contains('/tests/') { // TODO copy pasta
|
||||||
|
continue
|
||||||
|
}
|
||||||
vet_options.vet_file(file)
|
vet_options.vet_file(file)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue