From c6c245aaa5acff789447a06163cf940f9a5b9bb4 Mon Sep 17 00:00:00 2001 From: Allen Sun Date: Sat, 10 Nov 2018 21:14:20 +0800 Subject: [PATCH] linter: add markdownlint and misspell Signed-off-by: Allen Sun --- .circleci/config.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..c23974d --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,27 @@ +# Golang CircleCI 2.0 configuration file +# +# Check https://circleci.com/docs/2.0/language-go/ for more details +version: 2 +jobs: + markdownlint-misspell: + docker: + # this image is build from Dockerfile + # https://github.com/pouchcontainer/pouchlinter/blob/master/Dockerfile + - image: pouchcontainer/pouchlinter:v0.1 + working_directory: /go/src/github.com/alibaba/clusterdata + steps: + - checkout + - run: + name: use markdownlint v0.5.0 to lint markdown file (https://github.com/markdownlint/markdownlint) + command: | + find ./ -name "*.md" | 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 "*" | xargs misspell -error + +workflows: + version: 2 + ci: + jobs: + - markdownlint-misspell