diff options
author | Sandro Santilli <strk@kbt.io> | 2017-06-06 15:53:16 +0200 |
---|---|---|
committer | Bo-Yi Wu <appleboy.tw@gmail.com> | 2017-06-06 08:53:16 -0500 |
commit | f6b58964d70f7a66ab0ef9affc03a2320b4abd22 (patch) | |
tree | fc1deeb542c69ac5fddbf824f2f8673ce11d1331 /models/repo_test.go | |
parent | 6ec07a6bd7d1f88f0685efa4e1b62a32cbb25e43 (diff) | |
download | gitea-f6b58964d70f7a66ab0ef9affc03a2320b4abd22.tar.gz gitea-f6b58964d70f7a66ab0ef9affc03a2320b4abd22.zip |
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`
Diffstat (limited to 'models/repo_test.go')
-rw-r--r-- | models/repo_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo_test.go b/models/repo_test.go index 13ac272b6d..4b6fd440aa 100644 --- a/models/repo_test.go +++ b/models/repo_test.go @@ -11,8 +11,8 @@ import ( "code.gitea.io/gitea/modules/markdown" "code.gitea.io/gitea/modules/setting" - "github.com/stretchr/testify/assert" "github.com/Unknwon/com" + "github.com/stretchr/testify/assert" ) func TestRepo(t *testing.T) { |