2
0
Fork 0
mirror of https://github.com/mas-cli/mas synced 2025-03-06 23:57:21 +00:00

Add zsh syntax check to script/lint.

Resolve 

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
This commit is contained in:
Ross Goldberg 2025-01-16 16:51:35 -05:00
parent 3ce1f84142
commit 612a34d1b5
No known key found for this signature in database

View file

@ -41,6 +41,12 @@ printf -- $'--> 🐚 ShellCheck\n'
shellcheck -s bash -o all -e SC1088,SC1102,SC2066,SC2296,SC2299,SC2300,SC2301,SC2312 -a -P SCRIPTDIR script/**/*(.)
((exit_code |= ${?}))
printf -- $'--> 💤 zsh syntax\n'
for script in script/**/*(.); do
/bin/zsh -n "${script}"
((exit_code |= ${?}))
done
printf -- $'--> 〽️ Markdown\n'
markdownlint --config .markdownlint.json . docs
((exit_code |= ${?}))