Add spell checking with typos (#4138)

* Add spell checking with typos
Implement https://github.com/FreshRSS/FreshRSS/pull/4134#issuecomment-1008027558

* GitHub Actions attempt

* Quiet wget

* Makefile
This commit is contained in:
Alexandre Alapetite
2022-01-09 18:21:40 +01:00
committed by GitHub
parent 9dbbe924c5
commit 4e2dff4591
24 changed files with 119 additions and 71 deletions

View File

@@ -82,6 +82,15 @@ bin/phpcbf:
wget -O bin/phpcbf https://github.com/squizlabs/PHP_CodeSniffer/releases/download/3.5.5/phpcbf.phar
echo '6f64fe00dee53fa7b256f63656dc0154f5964666fc7e535fac86d0078e7dea41 bin/phpcbf' | sha256sum -c - || rm bin/phpcbf
bin/typos:
mkdir -p bin/
cd bin ; \
wget -q 'https://github.com/crate-ci/typos/releases/download/v1.3.3/typos-v1.3.3-x86_64-unknown-linux-musl.tar.gz' && \
tar -xvf *.tar.gz './typos' && \
chmod +x typos && \
rm *.tar.gz ; \
cd ..
##########
## I18N ##
##########
@@ -192,9 +201,13 @@ npm-test:
npm-fix:
npm run fix
.PHONY: typos-test
typos-test: bin/typos
bin/typos
# TODO: Add shellcheck, shfmt, hadolint
.PHONY: test-all
test-all: composer-test npm-test
test-all: composer-test npm-test typos-test
.PHONY: fix-all
fix-all: composer-fix npm-fix