1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-23 06:35:23 +02:00

CI: Only ignore TLDR003, TLDR004 and TLDR015 for specific languages (#12715)

Co-authored-by: Reinhart Previano Koentjoro <reinhart_previano@yahoo.com>
This commit is contained in:
Sebastiaan Speck 2024-05-05 13:31:02 +02:00 committed by GitHub
parent 6bec2f3637
commit fe67f26e3a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -62,11 +62,13 @@ function run_tests {
find pages* -name '*.md' -exec markdownlint {} +
tldr-lint ./pages
for f in ./pages.*; do
checks="TLDR003,TLDR004,TLDR015,TLDR104"
checks="TLDR104"
if [[ -L $f ]]; then
continue
elif [[ $f == *ar* || $f == *bn* || $f == *fa* || $f == *hi* || $f == *ja* || $f == *ko* || $f == *lo* || $f == *ml* || $f == *ne* || $f == *ta* || $f == *th* || $f == *tr* ]]; then
checks+=",TLDR003,TLDR004,TLDR015"
elif [[ $f == *zh* || $f == *zh_TW* ]]; then
checks+=",TLDR005"
checks+=",TLDR003,TLDR004,TLDR005,TLDR015"
fi
tldr-lint --ignore $checks "${f}"
done