From 9ccefad5008db2ba9075380fed595501cb42fa6c Mon Sep 17 00:00:00 2001 From: kirkrodrigues <2454684+kirkrodrigues@users.noreply.github.com> Date: Sun, 12 May 2024 22:47:08 -0400 Subject: [PATCH] yamllint: Explicitly specify files to be linted to avoid expanding the ignored files. (#394) --- .yamllint.yml | 11 ----------- lint-tasks.yml | 10 +++++++++- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/.yamllint.yml b/.yamllint.yml index dbc7e123b..906fb5a5c 100644 --- a/.yamllint.yml +++ b/.yamllint.yml @@ -6,17 +6,6 @@ yaml-files: - "*.yaml" - "*.yml" -ignore: | - .lint-venv/ - build/ - components/core/build/ - components/core/cmake-build-debug/ - components/core/cmake-build-release/ - components/core/submodules/ - components/core/third-party/ - components/webui/node_modules/ - components/webui/linter/node_modules/ - rules: anchors: forbid-duplicated-anchors: true diff --git a/lint-tasks.yml b/lint-tasks.yml index 8904c2be5..ba5c30fbf 100644 --- a/lint-tasks.yml +++ b/lint-tasks.yml @@ -98,7 +98,15 @@ tasks: cmds: - |- . "{{.G_LINT_VENV_DIR}}/bin/activate" - yamllint --strict . + yamllint --strict \ + .github \ + .yamllint.yml \ + components/core/.clang-format \ + components/core/config \ + components/package-template/src/etc \ + docs \ + lint-tasks.yml \ + Taskfile.yml cpp: internal: true