mirror of https://github.com/CrimsonTome/tldr.git
CI: Only ignore TLDR003, TLDR004 and TLDR015 for specific languages (#12715)
Co-authored-by: Reinhart Previano Koentjoro <reinhart_previano@yahoo.com>pull/28/head
parent
6bec2f3637
commit
fe67f26e3a
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue