diff --git a/Makefile b/Makefile index 8517d4f..592205b 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ # derived from: http://zduck.com/2014/go-project-structure-and-dependencies/ # build targets (which aren't files) -.PHONY: build fmt lint vet test autotest cover doc run clean env vendor +.PHONY: build fmt lint vet test autotest cover doc run clean env stats vendor # configuration APPNAME := docrawler @@ -26,8 +26,8 @@ build: fmt lint vet fmt: go fmt ./src/... +# TODO golint is not accepting the "./src/..." for some reason (from within make) lint: - # TODO golint is not accepting the "./src/..." for some reason (from within make) golint ./src/${APPNAME}/*.go vet: @@ -55,6 +55,9 @@ clean: env: go env +stats: + cloc ./src + # vendor # * wipes our vendor directory completely # * fetches all packages in ${PACKAGES} (GOPATH hardcoded to vendor directory only) diff --git a/src/docrawler/docrawler_test.go b/src/docrawler/docrawler_test.go index e99935a..a9c565e 100644 --- a/src/docrawler/docrawler_test.go +++ b/src/docrawler/docrawler_test.go @@ -77,7 +77,6 @@ func TestSimpleFetch(t *testing.T) { // TestSimpleMap figures out the site map for the site in baseURL func TestSimpleMap(t *testing.T) { pages := docrawl(baseURL) - t.Log("pages = ", pages) if len(pages) != 4 { t.Logf("got %v, wanted %v\n", len(pages), 1) t.Fatal("got wrong number of pages")