Skip to content

Commit f423c9c

Browse files
committed
Add more paths to exclude
1 parent 0ebac1d commit f423c9c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

taskfiles/lint-cmake.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ tasks:
99
- "{{.ROOT_DIR}}/**/CMakeLists.txt"
1010
- "{{.TASKFILE}}"
1111
- exclude: "{{.ROOT_DIR}}/**/build/*"
12+
- exclude: "{{.ROOT_DIR}}/**/submodules/*"
13+
- exclude: "{{.ROOT_DIR}}/**/tools/*"
1214
deps:
1315
- "venv"
1416
cmds:
@@ -40,7 +42,7 @@ tasks:
4042
- |-
4143
. "{{.G_LINT_VENV_DIR}}/bin/activate"
4244
find . \
43-
-path ./build -prune -o \
45+
\( -path '**/build' -o -path '**/submodules' -o -path '**/tools' \) -prune -o \
4446
\( -iname "CMakeLists.txt" -o -iname "*.cmake" -o -iname "*.cmake.in" \) \
4547
-print0 | \
4648
xargs -0 --no-run-if-empty gersemi {{.FLAGS}}

0 commit comments

Comments
 (0)