cmd: rename test-vet to test-cleancode

pull/6842/head
Delyan Angelov 2020-11-15 16:24:25 +02:00
parent 9cf5a31faf
commit 4559b4138f
3 changed files with 8 additions and 4 deletions

View File

@ -21,8 +21,8 @@ jobs:
run: echo $VFLAGS $GITHUB_SHA $GITHUB_REF
- name: Build local v
run: make -j4
- name: v test-vet
run: ./v -silent test-vet
- name: v test-cleancode
run: ./v -silent test-cleancode
- name: v test-fmt
run: ./v -silent test-fmt

View File

@ -61,7 +61,7 @@ const (
fn main() {
args := os.args
args_string := args[1..].join(' ')
pass_args := args_string.all_before('test-vet')
pass_args := args_string.all_before('test-cleancode')
v_test_vetting(pass_args)
}

View File

@ -13,7 +13,7 @@ const (
simple_cmd = [
'fmt', 'up', 'vet',
'self', 'tracev', 'symlink', 'bin2v',
'test', 'test-fmt', 'test-compiler', 'test-fixed', 'test-vet',
'test', 'test-fmt', 'test-compiler', 'test-fixed', 'test-cleancode',
'repl',
'build-tools', 'build-examples',
'build-vbinaries',
@ -41,6 +41,10 @@ fn main() {
// println('prefs= ')
// println(prefs) // QTODO
}
if command == 'test-vet' {
println('Please use `v test-cleancode` instead.')
return
}
// Start calling the correct functions/external tools
// Note for future contributors: Please add new subcommands in the `match` block below.
if command in simple_cmd {