From bffb0132a519bb3183584cb0090aa0b341bc45f1 Mon Sep 17 00:00:00 2001 From: rigelrozanski Date: Fri, 27 Apr 2018 15:20:12 -0400 Subject: [PATCH] lint fix, add make test_lint --- Makefile | 5 ++++- x/stake/fee_distribution.go | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 855d963570..acbfba9511 100644 --- a/Makefile +++ b/Makefile @@ -99,6 +99,9 @@ test_unit: test_cover: @bash tests/test_cover.sh +test_lint: + gometalinter --disable-all --enable='golint' --vendor ./... + benchmark: @go test -bench=. $(PACKAGES) @@ -130,4 +133,4 @@ devdoc_update: # To avoid unintended conflicts with file names, always add to .PHONY # unless there is a reason not to. # https://www.gnu.org/software/make/manual/html_node/Phony-Targets.html -.PHONY: build build_examples install install_examples dist check_tools get_tools get_vendor_deps draw_deps test test_unit test_tutorial benchmark devdoc_init devdoc devdoc_save devdoc_update +.PHONY: build build_examples install install_examples dist check_tools get_tools get_vendor_deps draw_deps test test_nocli test_unit test_cover test_lint benchmark devdoc_init devdoc devdoc_save devdoc_update diff --git a/x/stake/fee_distribution.go b/x/stake/fee_distribution.go index cff42c7065..940a66e38c 100644 --- a/x/stake/fee_distribution.go +++ b/x/stake/fee_distribution.go @@ -4,6 +4,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" ) +// Handle fee distribution to the validators and delegators func FeeHandler(ctx sdk.Context, tx sdk.Tx, fee sdk.Coins) { }