瀏覽代碼

Merge pull request #4046 from utkarshcmu/patch-1

Updated contributing.md with gofmt check
Carl Bergquist 10 年之前
父節點
當前提交
84e50f9003
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      CONTRIBUTING.md

+ 6 - 1
CONTRIBUTING.md

@@ -10,7 +10,12 @@ grunt && grunt watch
 grunt karma:dev
 ```
 
-### Run tests before commit
+### Run tests for backend assets before commit
+```
+test -z "$(gofmt -s -l . | grep -v Godeps/_workspace/src/ | tee /dev/stderr)"
+```
+
+### Run tests for frontend assets before commit
 ```
 grunt test
 godep go test -v ./pkg/...