Skip to content

Commit 813c4b2

Browse files
Apply formatting exclusively to most important scripts
1 parent f9873c6 commit 813c4b2

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Taskfile.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,4 +160,16 @@ tasks:
160160
echo "shfmt not installed or not in PATH. Please install: https://github.com/mvdan/sh#shfmt"
161161
exit 1
162162
fi
163-
- shfmt -w .
163+
- |
164+
find . \
165+
-type d -name '.git' -prune -or \
166+
-type d -name '.licenses' -prune -or \
167+
-type d -name '__pycache__' -prune -or \
168+
-type d -name 'node_modules' -prune -or \
169+
-type d -path './deps/*' -prune -or \
170+
\( \
171+
-regextype posix-extended \
172+
-regex '.*[.](bash|sh)' -and \
173+
-type f \
174+
\) \
175+
-print | xargs shfmt -w

0 commit comments

Comments
 (0)