all: run gofmt on all source code

Some source code wasn't part of `FMT_PATHS` so wasn't checked for
correct formatting. This change includes all this source code and
excludes cgo/testdata because it contains files that can't be parsed.
This commit is contained in:
Ayke van Laethem
2022-06-18 20:03:07 +02:00
committed by Ron Evans
parent 9af535bf98
commit 64d7f1e436
18 changed files with 28 additions and 12 deletions
+8 -6
View File
@@ -95,6 +95,14 @@ commands:
key: wasi-libc-sysroot-systemclang-v6
paths:
- lib/wasi-libc/sysroot
- when:
condition: <<parameters.fmt-check>>
steps:
- run:
# Do this before gen-device so that it doesn't check the
# formatting of generated files.
name: Check Go code formatting
command: make fmt-check
- run: make gen-device -j4
- run: make smoketest XTENSA=0
- save_cache:
@@ -102,12 +110,6 @@ commands:
paths:
- ~/.cache/go-build
- /go/pkg/mod
- when:
condition: <<parameters.fmt-check>>
steps:
- run:
name: Check Go code formatting
command: make fmt-check
jobs:
test-llvm13-go116: