diff --git a/taskfiles/lint-cmake.yaml b/taskfiles/lint-cmake.yaml index 87af4ba8..30a1545f 100644 --- a/taskfiles/lint-cmake.yaml +++ b/taskfiles/lint-cmake.yaml @@ -16,7 +16,6 @@ tasks: vars: FLAGS: "--diff --color" - task: "gersemi" - silent: true vars: FLAGS: "--check" @@ -43,4 +42,4 @@ tasks: \( -path '**/build' -o -path '**/submodules' -o -path '**/tools' \) -prune -o \ \( -iname "CMakeLists.txt" -o -iname "*.cmake" -o -iname "*.cmake.in" \) \ -print0 | \ - xargs -0 --no-run-if-empty gersemi {{.FLAGS}} + xargs -0 gersemi {{.FLAGS}} diff --git a/taskfiles/lint-yaml.yaml b/taskfiles/lint-yaml.yaml index 1f5adafc..a15faa63 100644 --- a/taskfiles/lint-yaml.yaml +++ b/taskfiles/lint-yaml.yaml @@ -6,15 +6,23 @@ tasks: - "yaml-check" - "yaml-fix" desc: "Runs the YAML linters. Only checks for warnings and violations." + sources: + - "{{.ROOT_DIR}}/**/*.yaml" + - "{{.ROOT_DIR}}/**/*.yml" + - "{{.TASKFILE}}" + - exclude: "{{.ROOT_DIR}}/**/build/*" + - exclude: "{{.ROOT_DIR}}/**/submodules/*" + - exclude: "{{.ROOT_DIR}}/**/tools/*" deps: - "venv" dir: "{{.ROOT_DIR}}" cmds: - |- . "{{.G_LINT_VENV_DIR}}/bin/activate" - yamllint \ - --config-file "tools/yscope-dev-utils/lint-configs/.yamllint.yml" \ - --strict \ - .github \ - taskfile.yaml \ - taskfiles/ + find . \ + \( -path '**/build' -o -path '**/submodules' -o -path '**/tools' \) -prune -o \ + \( -iname "*.yaml" -o -iname "*.yml" \) \ + -print0 | \ + xargs -0 yamllint \ + --config-file "tools/yscope-dev-utils/lint-configs/.yamllint.yml" \ + --strict