From 3c90da6afa49044ab667a2a89fe4024d38b2cd52 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Mon, 20 Jul 2020 22:26:44 +0200 Subject: [PATCH] ci: enable vfmt check --- .github/workflows/ci.yml | 6 +++--- cmd/tools/vfmt.v | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7062d36e0b..4df7371393 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,9 +51,9 @@ jobs: ./v vet vlib/v/gen/cgen.v ./v vet vlib/v/checker ./v vet vlib/sqlite -# - name: v fmt -# run: | -# ./v fmt -verify vlib/v/checker/checker.v + - name: v fmt + run: | + ./v fmt -verify vlib/v/checker/checker.v # - name: Test v binaries # run: ./v -silent build-vbinaries diff --git a/cmd/tools/vfmt.v b/cmd/tools/vfmt.v index d2241b42b6..0a36e73b6a 100644 --- a/cmd/tools/vfmt.v +++ b/cmd/tools/vfmt.v @@ -204,6 +204,7 @@ fn (foptions &FormatOptions) post_process_file(file, formatted_file_path string) } x := util.color_compare_files(diff_cmd, file, formatted_file_path) if x.len != 0 { + println("$file is not vfmt'ed") exit(1) } return