From 896897faed8fb40cccd4693449221d4bd07632b3 Mon Sep 17 00:00:00 2001 From: fengzixu Date: Sat, 7 Dec 2019 17:19:54 +0900 Subject: [PATCH] feature: add the yamllint tool Signed-off-by: fengzixu --- .circleci/config.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 44a7fbfd0..c4977560e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -10,7 +10,7 @@ jobs: docker: # this image is built from Dockerfile # https://github.com/pouchcontainer/pouchlinter/blob/master/Dockerfile - - image: pouchcontainer/pouchlinter:v0.2.4 + - image: dragonflyoss/linter:v0.2.7 working_directory: /go/src/github.com/dragonflyoss/Dragonfly steps: - checkout @@ -36,11 +36,15 @@ jobs: - run: name: use opensource tool client9/misspell to correct commonly misspelled English words command: | - find ./* -name "*" | xargs misspell -error + find . -name "*" | xargs misspell -error + - run: + name: use yamllint tool to check the format of all yaml files + command: | + find . -name "*.yml" | xargs yamllint - run: name: use ShellCheck (https://github.com/koalaman/shellcheck) to check the validateness of shell scripts in pouch repo command: | - find ./ -name "*.sh" | xargs shellcheck + find . -name "*.sh" | xargs shellcheck - run: name: validate go mod files command: |