From 7384ddc508f2e27c0a00bb3b7bdc03993532711d Mon Sep 17 00:00:00 2001 From: Cameron Sparr Date: Tue, 4 Aug 2015 16:12:48 -0600 Subject: [PATCH] Verify proper go formatting in circleci job --- circle.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/circle.yml b/circle.yml index 6c346a3604759..4c2da45660a00 100644 --- a/circle.yml +++ b/circle.yml @@ -9,6 +9,8 @@ test: pre: # Vet go code for any potential errors - go vet ./... + # Verify that all files are properly go formatted + - [ `git ls-files | grep '.go$' | xargs gofmt -l 2>&1 | wc -l` -eq 0 ] override: # Enforce that testutil, cmd, and main directory are fully linted - golint .