Skip to content

Commit b4f15d2

Browse files
committed
ci: report goimports formatting errors
Signed-off-by: Sebastien Binet <[email protected]>
1 parent 98b7a2e commit b4f15d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.ci/check-formatting.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
set -e
4+
35
test -z "$(goimports -d .)"
46
if [[ -n "$(gofmt -s -l .)" ]]; then
57
echo -e '\e[31mCode not gofmt simplified in:\n\n'

0 commit comments

Comments
 (0)