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 #717 Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
This commit is contained in:
parent
3ce1f84142
commit
612a34d1b5
1 changed files with 6 additions and 0 deletions
|
@ -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 |= ${?}))
|
||||
|
|
Loading…
Add table
Reference in a new issue