Skip to content

Commit

Permalink
Merge pull request AliyunContainerService#1304 from allencloud/add-mi…
Browse files Browse the repository at this point in the history
…sspell

feature: add misspell tool to check English words
  • Loading branch information
allencloud authored May 13, 2018
2 parents 56958da + 3480d2d commit 5a7236d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
22 changes: 6 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,19 @@
# Check https://circleci.com/docs/2.0/language-go/ for more details
version: 2
jobs:
markdown-lint-docs:
misspell-and-markdown-lint:
docker:
# specify the version
- image: allencloud/mdl:v0.4

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/postgres:9.4

#### TEMPLATE_NOTE: go expects specific checkout path representing url
#### expecting it in the form of
#### /go/src/github.com/circleci/go-tool
#### /go/src/bitbucket.org/circleci/go-tool
- image: allencloud/mdlmisspell:v0.1
working_directory: /go/src/github.com/{{ORG_NAME}}/{{REPO_NAME}}
steps:
- checkout

# specify any bash command here prefixed with `run: `
- run:
name: use markdownlint v0.4.0 to lint markdown file (https://github.com/markdownlint/markdownlint)
command: |
find ./ -name "*.md" | grep -v vendor | grep -v extra | grep -v commandline | grep -v .github | grep -v swagger | grep -v api | xargs mdl -r ~MD010,~MD013,~MD024,~MD029,~MD033,~MD036
- run:
name: use opensource tool client9/misspell to correct commonly misspelled English words
command: find ./* -name "*" | grep -v extra | grep -v vendor | xargs misspell -error

code-check:
docker:
Expand Down Expand Up @@ -62,6 +52,6 @@ workflows:
version: 2
ci:
jobs:
- markdown-lint-docs
- misspell-and-markdown-lint
- code-check
- unit-test
2 changes: 1 addition & 1 deletion pkg/errtypes/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var (
// ErrNotImplemented represents that the function is not implemented.
ErrNotImplemented = errorType{codeNotImplemented, "not implemented"}

// ErrUsingbyContainers represents that object is useing by containers
// ErrUsingbyContainers represents that object is used by containers
ErrUsingbyContainers = errorType{codeInUse, "using by containers"}
)

Expand Down

0 comments on commit 5a7236d

Please sign in to comment.