diff --git a/cmd/tools/vtest-cleancode.v b/cmd/tools/vtest-cleancode.v index 2ea8eec56b..661b00088c 100644 --- a/cmd/tools/vtest-cleancode.v +++ b/cmd/tools/vtest-cleancode.v @@ -18,6 +18,7 @@ const ( 'nonexistant', ] vfmt_verify_list = [ + 'cmd/v/v.v', 'vlib/builtin/array.v', 'vlib/os/file.v', 'vlib/math/bits/bits.v', diff --git a/cmd/v/v.v b/cmd/v/v.v index 67e63a25df..8738395ad0 100644 --- a/cmd/v/v.v +++ b/cmd/v/v.v @@ -10,15 +10,27 @@ import v.util import v.builder const ( - simple_cmd = [ - 'fmt', 'up', 'vet', - 'self', 'tracev', 'symlink', 'bin2v', - 'test', 'test-fmt', 'test-compiler', 'test-fixed', 'test-cleancode', + simple_cmd = [ + 'fmt', + 'up', + 'vet', + 'self', + 'tracev', + 'symlink', + 'bin2v', + 'test', + 'test-fmt', + 'test-compiler', + 'test-fixed', + 'test-cleancode', 'repl', 'complete', - 'build-tools', 'build-examples', + 'build-tools', + 'build-examples', 'build-vbinaries', - 'setup-freetype', 'doc', 'doctor' + 'setup-freetype', + 'doc', + 'doctor', ] list_of_flags_that_allow_duplicates = ['cc', 'd', 'define', 'cf', 'cflags'] ) @@ -45,7 +57,7 @@ fn main() { 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 {