From b14cd75a8e24941ac4c8411d91c2639a57757ac1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sof=C3=ADa=20Celi?= Date: Mon, 2 Dec 2019 23:35:50 -0500 Subject: [PATCH] Add new directions to Makefile --- Makefile | 8 ++++++++ go.mod | 1 + go.sum | 2 ++ 3 files changed, 11 insertions(+) diff --git a/Makefile b/Makefile index 97f07c6..bda6b5d 100644 --- a/Makefile +++ b/Makefile @@ -27,3 +27,11 @@ lint: cover: go test ./... -coverprofile=coverage.out go tool cover -html=coverage.out + +ineffassign: + go get -u github.com/gordonklaus/ineffassign/... + ineffassign . + +ci-lint: + golangci-lint run + diff --git a/go.mod b/go.mod index fbd8930..ad9fa6b 100644 --- a/go.mod +++ b/go.mod @@ -3,6 +3,7 @@ module github.com/otrv4/prekey-server-xmpp go 1.13 require ( + github.com/gordonklaus/ineffassign v0.0.0-20190601041439-ed7b1b5ee0f8 // indirect github.com/pkg/errors v0.8.0 // indirect github.com/sheenobu/go-xco v0.0.0-20170503183122-20e894c4a59f golang.org/x/net v0.0.0-20180712202826-d0887baf81f4 // indirect diff --git a/go.sum b/go.sum index 208f0dc..4f79f1f 100644 --- a/go.sum +++ b/go.sum @@ -1,3 +1,5 @@ +github.com/gordonklaus/ineffassign v0.0.0-20190601041439-ed7b1b5ee0f8 h1:ehVe1P3MbhHjeN/Rn66N2fGLrP85XXO1uxpLhv0jtX8= +github.com/gordonklaus/ineffassign v0.0.0-20190601041439-ed7b1b5ee0f8/go.mod h1:cuNKsD1zp2v6XfE/orVX2QE1LC+i254ceGcVeDT3pTU= github.com/pkg/errors v0.8.0 h1:WdK/asTD0HN+q6hsWO3/vpuAkAr+tw6aNJNDFFf0+qw= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/sheenobu/go-xco v0.0.0-20170503183122-20e894c4a59f h1:/NwSPAEngU1Ol/T0Xh3gSt8uHHxpa02H9BIMq95lBr8= -- GitLab