From 08602257cd3981b1cdc1d956d28b52a88a178b81 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Thu, 5 Dec 2019 00:45:33 +0300 Subject: [PATCH] Improvements --- .travis.yml | 2 -- Makefile | 9 ++++++--- README.md | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8ee3339..9920bd5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,3 @@ -sudo: false - language: go go: diff --git a/Makefile b/Makefile index 94b9d7e..bababf9 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ ################################################################################ -# This Makefile generated by GoMakeGen 1.2.0 using next command: +# This Makefile generated by GoMakeGen 1.3.0 using next command: # gomakegen --metalinter . # # More info: https://kaos.sh/gomakegen @@ -8,7 +8,7 @@ ################################################################################ .DEFAULT_GOAL := help -.PHONY = fmt git-config deps metalinter help +.PHONY = fmt vet git-config deps metalinter help ################################################################################ @@ -21,6 +21,9 @@ deps: git-config ## Download dependencies fmt: ## Format source code with gofmt find . -name "*.go" -exec gofmt -s -w {} \; +vet: ## Runs go vet over sources + go vet -composites=false -printfuncs=LPrintf,TLPrintf,TPrintf,log.Debug,log.Info,log.Warn,log.Error,log.Critical,log.Print ./... + metalinter: ## Install and run gometalinter test -s $(GOPATH)/bin/gometalinter || (go get -u github.com/alecthomas/gometalinter ; $(GOPATH)/bin/gometalinter --install) $(GOPATH)/bin/gometalinter --deadline 30s @@ -30,6 +33,6 @@ help: ## Show this info @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) \ | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[33m%-12s\033[0m %s\n", $$1, $$2}' @echo -e '' - @echo -e '\033[90mGenerated by GoMakeGen 1.2.0\033[0m\n' + @echo -e '\033[90mGenerated by GoMakeGen 1.3.0\033[0m\n' ################################################################################ diff --git a/README.md b/README.md index ce33474..5b68a33 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@

- + codebeat badge