diff options
author | EuAndreh <eu@euandre.org> | 2020-10-11 03:56:30 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-10-11 04:19:20 -0300 |
commit | 6d2fae4d2749d893f5d027d5b4756e709a3847af (patch) | |
tree | d99d02b8039e233d2e5ae833b2752ef144274ffc /spelling | |
parent | Mark slides + article on feature flags as unpublished (diff) | |
download | euandre.org-6d2fae4d2749d893f5d027d5b4756e709a3847af.tar.gz euandre.org-6d2fae4d2749d893f5d027d5b4756e709a3847af.tar.xz |
Decouple testing with Nix
Use Nix for build isolation not for test running.
Diffstat (limited to 'spelling')
-rwxr-xr-x | spelling/check-spelling.sh | 37 | ||||
-rw-r--r-- | spelling/en.txt | 39 | ||||
-rw-r--r-- | spelling/fr.txt | 8 | ||||
-rw-r--r-- | spelling/international.txt | 142 | ||||
-rw-r--r-- | spelling/pt.txt | 126 |
5 files changed, 0 insertions, 352 deletions
diff --git a/spelling/check-spelling.sh b/spelling/check-spelling.sh deleted file mode 100755 index 3ddfd2a..0000000 --- a/spelling/check-spelling.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env bash -set -Eeuo pipefail - -HTML_DIR="${1:-}" -[[ -z "${HTML_DIR}" ]] && { - echo 'Undefined input HTML_DIR.' >&2 - exit 2 -} - -# Required by =sort= and =hunspell= -export LANG=C.UTF-8 - -for DICT in spelling/*.txt; do - diff <(sort "$DICT" | uniq) "$DICT" || { - echo "The $DICT dictionary is unsorted. To fix it, run:" >&2 - echo " LANG=C.UTF-8 sort $DICT | uniq | sponge $DICT" >&2 - exit 1 - } -done - -rm -f spelling.txt -shopt -s globstar -for f in "${HTML_DIR}"/**/*.html; do - if ! grep -E '/pastebin(/|s.html)' <(echo "$f") > /dev/null; then - l="$(head -n2 "$f" | tail -n1 | cut -d\" -f2)" - hunspell -u3 -H -d "$l" -p <(cat spelling/international.txt "spelling/$l.txt") "$f" | tee -a spelling.txt - fi -done - -if [[ -s spelling.txt ]]; then - printf "\nvvv Mispelled words detected by hunspell.\n\n" >&2 - sort < spelling.txt | uniq >&2 - printf "\n^^^\n" >&2 - exit 1 -else - echo "No words mispelled" >&2 -fi diff --git a/spelling/en.txt b/spelling/en.txt deleted file mode 100644 index bebfc76..0000000 --- a/spelling/en.txt +++ /dev/null @@ -1,39 +0,0 @@ -Patches -Rollout -Slides -aren -autocommit -backend -behaviour -couldn -cronjobs -curation -declaratively -decrypting -didn -doesn -duplications -embeddable -filesystem -filesystems -isn -maintainence -oday -portuguese -portuguse -pre -programmatically -realising -reimplementation -repo -reproducibility -scriptable -shouldn -symlinks -syncable -só -tradeoffs -untrusted -ve -wasn -wouldn diff --git a/spelling/fr.txt b/spelling/fr.txt deleted file mode 100644 index aa09184..0000000 --- a/spelling/fr.txt +++ /dev/null @@ -1,8 +0,0 @@ -' -AJA -dimanche -earned -oday -ppris -só -ujourd'hui diff --git a/spelling/international.txt b/spelling/international.txt deleted file mode 100644 index 3536249..0000000 --- a/spelling/international.txt +++ /dev/null @@ -1,142 +0,0 @@ -144p -1D -250GB -2D -2nix -32GB -500GB -81F90EC3CD356060 -8GB -André -Atom -B1 -BN -BSON -BY -BY-SA -Bitbucket -CI -CLI -Cantrill -Clojure -CouchDB -DVCS -Datomic -EuAndreh -F -FFI -FTS -Fastmail -GADTs -GPLv -GPLv3 -GTK -GitLab -Gmail -GuixSD -HN -HTTPS -Halloway -Haskell -IndexedDB -JS -JSON -Joyent -L1 -LaTeX -Lerna -LilyPond -LiquidHaskell -Mailutils -Matroska -Mentat -Merkle -NPM -Nextcloud -NixOS -POSIX -Pastebin -PouchDB -README -RSS -Raku -Reddit -SA -SSD -Sourcehut -Spacemacs -StackOverflow -Staltz -TAB -TBs -TOML -TypeScript -UI -URL -VPN -WebAssembly -Yandex -YouTube -Zig -boneco -brainer -buildGoModule -cargo2nix -carte -cgit -ci -clojure -datalog -datom -datoms -dl -edn -en -euandreh -eval -fr -gcrypt -gt -guix -guixbuild -h1 -h6 -hinarioespirita -html -i5 -i7 -ify -intbytes -ish -jekyll -jemoji -js -kramdown -libre -lockfile -lockfiles -lt -merkle -myrepos -nixos -no-brainer -node2nix -noinform -npm -org -pastebin -pastebins -plaintext -progn -pt -sbcl -songbooks -sourcehut -sr -swift2nix -systemd -touchpad -v8 -xyz -youtube -à diff --git a/spelling/pt.txt b/spelling/pt.txt deleted file mode 100644 index 2befc17..0000000 --- a/spelling/pt.txt +++ /dev/null @@ -1,126 +0,0 @@ -Abaixo -Agosto -Anna -Aprendi -Atualizado -Blog -Cópia -H -HEA -I -L -Lista -Me -Patches -Postado -Postagens -Quando -T -Usar -Visite -Website -achar -arquivo -artigos -buscar -chegar -comece -comentário -como -completar -conhecimentos -contatar -criar -código -da -dados -de -desta -diretamente -direto -discussão -discussões -distribuir -do -dobráveis -dou eu -e -earned -email -empacotá -encontra -engasgo -entrada -envelope -escreva -escrever -escrevo -esforço -estou -eu -existentes -extra -fazer -ficou -formatos -gerar -impressão -inglês -interessantes -internet -intervalos -jeito -las -licenciado -licença -log -los -mandar -mande -me -mensagem -na -navegador -no -nome -normalmente -novo -o -oday -oje -ordená -os -padrão -para -parar -pessoal -por -post -postagens -prendi -procurando -procure -produção -projetos -pública -público -relacionados -reler -religioso -se -significa -simples -sobre -tempo -texto -timestamp -transpor -u -usando -usar -versão -versões -vindas -Ícone -é -úteis |