From b0df5d9568d9ff8e6beca2730353751236c72695 Mon Sep 17 00:00:00 2001 From: Levi Harrison Date: Fri, 25 Jun 2021 07:46:48 -0400 Subject: [PATCH 1/2] Added .yamllint to reposync Signed-off-by: Levi Harrison --- scripts/sync_repo_files.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/sync_repo_files.sh b/scripts/sync_repo_files.sh index 104c547321..e686cda2ef 100755 --- a/scripts/sync_repo_files.sh +++ b/scripts/sync_repo_files.sh @@ -37,7 +37,7 @@ if [ -z "${GITHUB_TOKEN}" ]; then fi # List of files that should be synced. -SYNC_FILES="CODE_OF_CONDUCT.md LICENSE Makefile.common SECURITY.md" +SYNC_FILES="CODE_OF_CONDUCT.md LICENSE Makefile.common SECURITY.md .yamllint" # Go to the root of the repo cd "$(git rev-parse --show-cdup)" || exit 1 From b7d2f4e189b851f35f6b9b2e9d0cc4da1c028803 Mon Sep 17 00:00:00 2001 From: Levi Harrison Date: Fri, 25 Jun 2021 08:03:58 -0400 Subject: [PATCH 2/2] Only run if yamllint is installed Signed-off-by: Levi Harrison --- Makefile.common | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile.common b/Makefile.common index bbdec8ef5d..a1b1ca40f4 100644 --- a/Makefile.common +++ b/Makefile.common @@ -201,7 +201,11 @@ endif .PHONY: common-yamllint common-yamllint: @echo ">> running yamllint on all YAML files in the repository" +ifeq (, $(shell which yamllint)) + @echo "yamllint not installed so skipping" +else yamllint . +endif # For backward-compatibility. .PHONY: common-staticcheck