From a4e707d1792152a32885cf99585a8e074d95252c Mon Sep 17 00:00:00 2001 From: Tom Wilkie Date: Wed, 23 Mar 2016 10:03:26 +0000 Subject: [PATCH] Project specific changes for misspell. - Add misspell to build container. - Add file to build container. - Ignore dagre spelling --- Makefile | 2 +- backend/Dockerfile | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 36892fb5f..c59244636 100644 --- a/Makefile +++ b/Makefile @@ -100,7 +100,7 @@ tests: $(SCOPE_BACKEND_BUILD_UPTODATE) ./tools/test -no-go-get lint: $(SCOPE_BACKEND_BUILD_UPTODATE) - ./tools/lint . + ./tools/lint -ignorespelling "agre " -ignorespelling "AGRE " . prog/static.go: $(SCOPE_BACKEND_BUILD_UPTODATE) esc -o $@ -prefix client/build client/build diff --git a/backend/Dockerfile b/backend/Dockerfile index 566bb049e..b323a7128 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,10 +1,11 @@ FROM golang:1.6.0 -RUN apt-get update && apt-get install -y libpcap-dev python-requests time +RUN apt-get update && apt-get install -y libpcap-dev python-requests time file RUN go clean -i net && go install -tags netgo std && go install -race -tags netgo std RUN go get -tags netgo \ github.com/fzipp/gocyclo \ github.com/golang/lint/golint \ github.com/kisielk/errcheck \ - github.com/mjibson/esc + github.com/mjibson/esc \ + github.com/client9/misspell/cmd/misspell COPY build.sh / ENTRYPOINT ["/build.sh"]