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

Co-authored-by: Reinhart Previano Koentjoro <reinhart_previano@yahoo.com>
pull/28/head
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
1 changed files with 4 additions and 2 deletions

View File

@ -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
checks="TLDR003,TLDR004,TLDR015,TLDR104" checks="TLDR104"
if [[ -L $f ]]; then if [[ -L $f ]]; then
continue 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 elif [[ $f == *zh* || $f == *zh_TW* ]]; then
checks+=",TLDR005" checks+=",TLDR003,TLDR004,TLDR005,TLDR015"
fi fi
tldr-lint --ignore $checks "${f}" tldr-lint --ignore $checks "${f}"
done done