From 4559b4138fde6a0e07d0767e64b37dff8ba7d1e2 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sun, 15 Nov 2020 16:24:25 +0200 Subject: [PATCH] cmd: rename test-vet to test-cleancode --- .github/workflows/ci.yml | 4 ++-- cmd/tools/{vtest-vet.v => vtest-cleancode.v} | 2 +- cmd/v/v.v | 6 +++++- 3 files changed, 8 insertions(+), 4 deletions(-) rename cmd/tools/{vtest-vet.v => vtest-cleancode.v} (97%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 51277c7390..087727392f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/cmd/tools/vtest-vet.v b/cmd/tools/vtest-cleancode.v similarity index 97% rename from cmd/tools/vtest-vet.v rename to cmd/tools/vtest-cleancode.v index 247dc189ae..2ea8eec56b 100644 --- a/cmd/tools/vtest-vet.v +++ b/cmd/tools/vtest-cleancode.v @@ -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) } diff --git a/cmd/v/v.v b/cmd/v/v.v index 02a16f7030..1cce4d93a5 100644 --- a/cmd/v/v.v +++ b/cmd/v/v.v @@ -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 {