test: skip symlinked English folder and optimise the script (#11537)
* test: skip symlinked English folder and optimise the script * Update test.sh * Update test.sh * Update test.sh * Update test.sh * Update test.sh * Update test.sh * Update test.sh
This commit is contained in:
@@ -62,11 +62,13 @@ function run_tests {
|
|||||||
find pages* -name '*.md' -exec markdownlint {} +
|
find pages* -name '*.md' -exec markdownlint {} +
|
||||||
tldr-lint ./pages
|
tldr-lint ./pages
|
||||||
for f in ./pages.*; do
|
for f in ./pages.*; do
|
||||||
if [[ $f == *zh* || $f == *zh_TW* ]]; then
|
checks="TLDR003,TLDR004,TLDR015,TLDR104"
|
||||||
tldr-lint --ignore "TLDR003,TLDR004,TLDR005,TLDR015,TLDR104" "${f}"
|
if [[ -L $f ]]; then
|
||||||
else
|
continue
|
||||||
tldr-lint --ignore "TLDR003,TLDR004,TLDR015,TLDR104" "${f}"
|
elif [[ $f == *zh* || $f == *zh_TW* ]]; then
|
||||||
|
checks+=",TLDR005"
|
||||||
fi
|
fi
|
||||||
|
tldr-lint --ignore $checks "${f}"
|
||||||
done
|
done
|
||||||
run_black
|
run_black
|
||||||
run_flake8
|
run_flake8
|
||||||
|
Reference in New Issue
Block a user