mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
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:
parent
c544ed68bd
commit
4547f49a08
1 changed files with 6 additions and 4 deletions
|
@ -62,11 +62,13 @@ function run_tests {
|
|||
find pages* -name '*.md' -exec markdownlint {} +
|
||||
tldr-lint ./pages
|
||||
for f in ./pages.*; do
|
||||
if [[ $f == *zh* || $f == *zh_TW* ]]; then
|
||||
tldr-lint --ignore "TLDR003,TLDR004,TLDR005,TLDR015,TLDR104" "${f}"
|
||||
else
|
||||
tldr-lint --ignore "TLDR003,TLDR004,TLDR015,TLDR104" "${f}"
|
||||
checks="TLDR003,TLDR004,TLDR015,TLDR104"
|
||||
if [[ -L $f ]]; then
|
||||
continue
|
||||
elif [[ $f == *zh* || $f == *zh_TW* ]]; then
|
||||
checks+=",TLDR005"
|
||||
fi
|
||||
tldr-lint --ignore $checks "${f}"
|
||||
done
|
||||
run_black
|
||||
run_flake8
|
||||
|
|
Loading…
Add table
Reference in a new issue