Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions taskfiles/lint-cmake.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ tasks:
cmake-check:
desc: "Runs the CMake linters."
sources: &cmake_format_src_files
- "{{.G_LINT_VENV_CHECKSUM_FILE}}"
- "{{.ROOT_DIR}}/**/*.cmake"
- "{{.ROOT_DIR}}/**/*.cmake.in"
- "{{.ROOT_DIR}}/**/CMakeLists.txt"
- "{{.TASKFILE}}"
- exclude: "{{.ROOT_DIR}}/**/build/*"
- exclude: "{{.ROOT_DIR}}/**/submodules/*"
- exclude: "{{.ROOT_DIR}}/**/tools/*"
deps:
- "venv"
cmds:
- task: "gersemi"
vars:
Expand All @@ -22,6 +25,8 @@ tasks:
cmake-fix:
desc: "Runs the CMake linters and fixes all violations."
sources: *cmake_format_src_files
deps:
- "venv"
cmds:
- task: "gersemi"
vars:
Expand Down
3 changes: 2 additions & 1 deletion taskfiles/lint-yaml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@ tasks:
- "yaml-fix"
desc: "Runs the YAML linters. Only checks for warnings and violations."
sources:
- "{{.G_LINT_VENV_CHECKSUM_FILE}}"
- "{{.ROOT_DIR}}/**/*.yaml"
- "{{.ROOT_DIR}}/**/*.yml"
- "{{.TASKFILE}}"
- exclude: "{{.ROOT_DIR}}/**/build/*"
- exclude: "{{.ROOT_DIR}}/**/submodules/*"
- exclude: "{{.ROOT_DIR}}/**/tools/*"
dir: "{{.ROOT_DIR}}"
deps:
- "venv"
dir: "{{.ROOT_DIR}}"
cmds:
- |-
. "{{.G_LINT_VENV_DIR}}/bin/activate"
Expand Down
Loading