From f6b58964d70f7a66ab0ef9affc03a2320b4abd22 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Tue, 6 Jun 2017 15:53:16 +0200 Subject: 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` --- modules/setting/setting.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/setting') diff --git a/modules/setting/setting.go b/modules/setting/setting.go index cd2d4ab720..67018cf839 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -177,7 +177,7 @@ var ( // Repository local settings Local struct { - LocalCopyPath string + LocalCopyPath string } `ini:"-"` }{ AnsiCharset: "", @@ -214,7 +214,7 @@ var ( // Repository local settings Local: struct { - LocalCopyPath string + LocalCopyPath string }{ LocalCopyPath: "tmp/local-repo", }, -- cgit v1.2.3