]> source.dussan.org Git - gitea.git/commit
Include formatting check to the `make test` (and thus also `check`) rule (#1366)
authorSandro Santilli <strk@kbt.io>
Tue, 6 Jun 2017 13:53:16 +0000 (15:53 +0200)
committerBo-Yi Wu <appleboy.tw@gmail.com>
Tue, 6 Jun 2017 13:53:16 +0000 (08:53 -0500)
commitf6b58964d70f7a66ab0ef9affc03a2320b4abd22
treefc1deeb542c69ac5fddbf824f2f8673ce11d1331
parent6ec07a6bd7d1f88f0685efa4e1b62a32cbb25e43
Include formatting check to the `make test` (and thus also `check`) rule (#1366)

* Include formatting check to the `make check` rule

... and give it its own standalone target too (make fmt-check)

Show diff on fmt-check failure
Do not allow running "fmt-check" with incompatible go version
Also simplify the `fmt` rule

* Forbid running "make fmt" with Go version != 1.7 or 1.8

* Ignore bindata.go for spelling and formatting checks

also remove duplicated variable assignment for GOFILES

* Run `make fmt`
Makefile
models/repo_test.go
modules/setting/setting.go