mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
Fail on lint errors during CI build.
This commit is contained in:
parent
d67f47927c
commit
d31f256020
@ -13,6 +13,7 @@ env:
|
|||||||
- ARCH=i686
|
- ARCH=i686
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
- make
|
||||||
- make test GOFLAGS="-race"
|
- make test GOFLAGS="-race"
|
||||||
- make coverage
|
- make coverage
|
||||||
|
|
||||||
|
4
Makefile
4
Makefile
@ -83,8 +83,8 @@ fmt:
|
|||||||
|
|
||||||
lint:
|
lint:
|
||||||
@echo "Running $@:"
|
@echo "Running $@:"
|
||||||
@GO15VENDOREXPERIMENT=1 ${GOPATH}/bin/golint github.com/minio/minio/cmd...
|
@GO15VENDOREXPERIMENT=1 ${GOPATH}/bin/golint -set_exit_status github.com/minio/minio/cmd...
|
||||||
@GO15VENDOREXPERIMENT=1 ${GOPATH}/bin/golint github.com/minio/minio/pkg...
|
@GO15VENDOREXPERIMENT=1 ${GOPATH}/bin/golint -set_exit_status github.com/minio/minio/pkg...
|
||||||
|
|
||||||
ineffassign:
|
ineffassign:
|
||||||
@echo "Running $@:"
|
@echo "Running $@:"
|
||||||
|
@ -58,7 +58,7 @@ func TestPostPolicyForm(t *testing.T) {
|
|||||||
for i, tt := range testCases {
|
for i, tt := range testCases {
|
||||||
formValues := make(map[string]string)
|
formValues := make(map[string]string)
|
||||||
formValues["Bucket"] = tt.Bucket
|
formValues["Bucket"] = tt.Bucket
|
||||||
formValues["Acl"] = tt.Acl
|
formValues["Acl"] = tt.ACL
|
||||||
formValues["Key"] = tt.Key
|
formValues["Key"] = tt.Key
|
||||||
formValues["X-Amz-Date"] = tt.XAmzDate
|
formValues["X-Amz-Date"] = tt.XAmzDate
|
||||||
formValues["X-Amz-Meta-Uuid"] = tt.XAmzMetaUUID
|
formValues["X-Amz-Meta-Uuid"] = tt.XAmzMetaUUID
|
||||||
|
Loading…
Reference in New Issue
Block a user