diff --git a/Makefile b/Makefile index 7507944..fea5891 100644 --- a/Makefile +++ b/Makefile @@ -32,8 +32,11 @@ simplify: @gofmt -s -l -w $(SRC) lint: + @echo "gofmt check..." @test -z "$(shell gofmt -l . | tee /dev/stderr)" || echo "[WARN] Fix formatting issues with 'make fmt'" + @echo "golint check..." @golint -set_exit_status $(PKGS) + @echo "go vet check..." @go vet $(PKGS) reflex: diff --git a/pkg/stringutil/utils.go b/pkg/stringutil/utils.go index faeb30e..f463727 100644 --- a/pkg/stringutil/utils.go +++ b/pkg/stringutil/utils.go @@ -75,7 +75,7 @@ func MakePathPrefixer(prefix string) func(string) string { } } -// Test if a "s" string match a "p" pattern with wildcards (*, ?) +// MatchWithWildcards tests if a "s" string matches a "p" pattern with wildcards (*, ?) func MatchWithWildcards(p string, s string) bool { runeInput := []rune(s) runePattern := []rune(p)