mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 04:33:47 +08:00
This reverts commit bca3810496
.
This commit is contained in:
parent
dcef34bafa
commit
dfaf0eb0f3
|
@ -1,7 +0,0 @@
|
|||
language: bash
|
||||
|
||||
before_script:
|
||||
- go get github.com/sijad/yaml-translation-utils/yamllinter
|
||||
|
||||
script:
|
||||
- bash scripts/linter.sh
|
|
@ -1,32 +0,0 @@
|
|||
if ! [ -x "$(command -v yamllinter)" ]; then
|
||||
echo 'Error: yamllinter is not installed.' >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
GREEN='\033[0;32m'
|
||||
RED='\033[0;31m'
|
||||
NC='\033[0m'
|
||||
|
||||
cd "./locale"
|
||||
|
||||
RC=0
|
||||
|
||||
for r in *.yml
|
||||
do
|
||||
[ "$r" != "validation.yml" ] || continue
|
||||
|
||||
echo "Checking $r:"
|
||||
|
||||
yamllinter --file "$r" --level 2
|
||||
|
||||
if [ $? -eq 1 ]; then
|
||||
RC=1
|
||||
printf "${RED}⨉ faild${NC}\n"
|
||||
else
|
||||
printf "${GREEN}✓ passed${NC}\n"
|
||||
fi
|
||||
|
||||
echo
|
||||
done
|
||||
|
||||
exit $RC
|
Loading…
Reference in New Issue
Block a user