Skip to content
This repository has been archived by the owner on Dec 7, 2020. It is now read-only.

Spelling Check #208

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ go:
- 1.8
install:
- go get github.com/tools/godep
- go get github.com/client9/misspell
script:
- make test
- if ([[ ${TRAVIS_BRANCH} == "master" ]] && [[ ${TRAVIS_EVENT_TYPE} == "push" ]]) || [[ -n ${TRAVIS_TAG} ]]; then
Expand Down
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ authors:
deps:
@echo "--> Installing build dependencies"
@go get github.com/tools/godep
@go get github.com/client9/misspell

vet:
@echo "--> Running go vet $(VETARGS) ."
Expand Down Expand Up @@ -116,6 +117,14 @@ format:
@echo "--> Running go fmt"
@gofmt -s -w *.go

spelling:
@echo "--> Checking the spelling"
@misspell -error *.go

linting:
@echo "--> Checking against linters"
@gometalinter --disable=errcheck --disable=gocyclo

bench:
@echo "--> Running go bench"
@godep go test -v -bench=.
Expand All @@ -131,8 +140,10 @@ cover:

test: deps
@echo "--> Running the tests"
@$(MAKE) golang
@godep go test -v
@$(MAKE) gofmt
@$(MAKE) spelling
@$(MAKE) vet
@$(MAKE) cover

Expand Down
2 changes: 1 addition & 1 deletion rotation.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (c *certificationRotation) watch() error {
case err := <-watcher.Errors:
log.WithFields(log.Fields{
"error": err.Error(),
}).Error("recieved an error from the file watcher")
}).Error("received an error from the file watcher")
}
}
}()
Expand Down