We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b101c8d commit e3e2c2eCopy full SHA for e3e2c2e
.travis.yml
@@ -15,6 +15,7 @@ script:
15
- go build -tags=gofuzz ./...
16
- go vet ./...
17
- staticcheck ./...
18
+ - ./scripts/gofmt.sh
19
- ./scripts/golint.sh
20
- go test -race ./...
21
- go test -c -race ./ovsdb
scripts/gofmt.sh
@@ -0,0 +1,14 @@
1
+#!/bin/bash
2
+
3
+# Verify that all files are correctly gofmt'd, with the exception of
4
+# generated code.
5
+EXIT=0
6
+GOFMT=$(go fmt ./... | grep -v "ovsnl/internal/ovsh")
7
8
+if [[ ! -z $GOFMT ]]; then
9
+ echo -e "Files that are not gofmt'd:\n"
10
+ echo "$GOFMT"
11
+ EXIT=1
12
+fi
13
14
+exit $EXIT
0 commit comments