From 4e2dff4591bb2062311c1d5bfcdca3ade2a76d16 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 9 Jan 2022 18:21:40 +0100 Subject: 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 --- Makefile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index adf30cad1..c68cda3e7 100644 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.3