2022-01-01 16:49:23 +00:00
|
|
|
# This is a basic workflow to help you get started with Actions
|
|
|
|
|
2022-09-25 21:02:57 +01:00
|
|
|
name: Spell check
|
2022-01-01 16:49:23 +00:00
|
|
|
|
|
|
|
# Controls when the workflow will run
|
|
|
|
on:
|
2023-05-14 09:19:26 +01:00
|
|
|
workflow_call:
|
2022-01-01 16:49:23 +00:00
|
|
|
schedule:
|
|
|
|
# Trigger Codespell at a scheduled time
|
|
|
|
# * is a special character in YAML so you have to quote this string
|
|
|
|
- cron: '30 0 * * *'
|
2022-11-21 19:47:08 +00:00
|
|
|
# Triggers the workflow on push or pull request events
|
|
|
|
# push:
|
|
|
|
# branches:
|
|
|
|
# - 'master'
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
# - 'master'
|
|
|
|
- '*typo*'
|
|
|
|
- '*spell*'
|
2022-01-01 16:49:23 +00:00
|
|
|
|
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
|
|
jobs:
|
|
|
|
# This workflow contains a single job called "Codespell"
|
|
|
|
Codespell:
|
|
|
|
# The type of runner that the job will run on
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-09-12 12:26:19 +01:00
|
|
|
uses: actions/checkout@v4
|
2022-01-01 16:49:23 +00:00
|
|
|
|
|
|
|
- name: Check spelling errors
|
2022-12-08 19:34:50 +00:00
|
|
|
run: |
|
|
|
|
pip install codespell
|
|
|
|
wget -q https://raw.githubusercontent.com/codespell-project/codespell/master/codespell_lib/data/dictionary.txt
|
|
|
|
wget -q https://raw.githubusercontent.com/codespell-project/codespell/master/codespell_lib/data/dictionary_rare.txt
|
|
|
|
wget -q https://raw.githubusercontent.com/codespell-project/codespell/master/codespell_lib/data/dictionary_code.txt
|
2022-12-23 22:11:00 +00:00
|
|
|
# Add further typos for continuous checks
|
2022-12-13 11:49:38 +00:00
|
|
|
echo 'behavioure->behaviour' >> dictionary.txt
|
|
|
|
echo 'blockign->blocking' >> dictionary.txt
|
|
|
|
echo 'ate->are' >> dictionary.txt
|
|
|
|
echo 'linve->live' >> dictionary.txt
|
|
|
|
echo 'actuallly->actually' >> dictionary.txt
|
|
|
|
echo 'asynchroniusly->asynchronously' >> dictionary.txt
|
2023-07-04 20:26:02 +01:00
|
|
|
echo 'synchroniusly->synchronously' >> dictionary.txt
|
2022-12-16 23:08:03 +00:00
|
|
|
echo 'seams->seems' >> dictionary.txt
|
2022-12-17 20:06:15 +00:00
|
|
|
echo 'selelction->selection' >> dictionary.txt
|
|
|
|
echo 'injectted->injected' >> dictionary.txt
|
|
|
|
echo 'prepanding->prepending' >> dictionary.txt
|
2023-02-07 21:57:02 +00:00
|
|
|
echo 'depanding->depending' >> dictionary.txt
|
2022-12-23 22:11:00 +00:00
|
|
|
echo 'undependant->independent' >> dictionary.txt
|
2023-02-07 21:57:02 +00:00
|
|
|
echo 'probablys->probably' >> dictionary.txt
|
2022-12-23 22:11:00 +00:00
|
|
|
echo 'ware->were' >> dictionary.txt
|
|
|
|
echo 'contetx->context' >> dictionary.txt
|
2024-02-14 21:22:20 +00:00
|
|
|
echo 'isseu->issue' >> dictionary.txt
|
2022-12-30 10:08:19 +00:00
|
|
|
echo 'issuw->issue' >> dictionary.txt
|
2023-01-05 19:33:22 +00:00
|
|
|
echo 'compatybility->compatibility' >> dictionary.txt
|
|
|
|
echo 'incompatybility->incompatibility' >> dictionary.txt
|
2023-01-08 00:24:49 +00:00
|
|
|
echo 'compatybilities->compatibilities' >> dictionary.txt
|
|
|
|
echo 'incompatybilities->incompatibilities' >> dictionary.txt
|
|
|
|
echo 'logn->long' >> dictionary.txt
|
|
|
|
echo 'postion->position' >> dictionary.txt
|
|
|
|
echo 'trase->trace' >> dictionary.txt
|
2023-02-07 21:57:02 +00:00
|
|
|
echo 'eider->either' >> dictionary.txt
|
|
|
|
echo 'isoaltion->isolation' >> dictionary.txt
|
|
|
|
echo 'symbolicl->symbolic' >> dictionary.txt
|
|
|
|
echo 're enable->re-enable' >> dictionary.txt
|
|
|
|
echo 'foder->folder' >> dictionary.txt
|
|
|
|
echo 'fodername1->foldername1' >> dictionary.txt
|
|
|
|
echo 'fodler->folder' >> dictionary.txt
|
|
|
|
echo 'built in->built-in' >> dictionary.txt
|
|
|
|
echo 'tigether->together' >> dictionary.txt
|
2023-02-12 02:28:02 +00:00
|
|
|
echo 'auxyliary->auxiliary' >> dictionary.txt
|
2023-02-12 13:48:20 +00:00
|
|
|
echo 'squating->squatting' >> dictionary.txt
|
2023-02-15 19:07:54 +00:00
|
|
|
echo 'suppoter->supporter' >> dictionary.txt
|
2023-04-01 17:00:38 +01:00
|
|
|
echo 'routime->routine' >> dictionary.txt
|
|
|
|
echo 'explorere->explorer' >> dictionary.txt
|
|
|
|
echo 'mein->main' >> dictionary.txt
|
2023-04-01 19:39:52 +01:00
|
|
|
echo 'trigegred->triggered' >> dictionary.txt
|
2023-05-08 22:10:56 +01:00
|
|
|
echo 'windoe->window' >> dictionary.txt
|
2023-07-04 20:26:02 +01:00
|
|
|
echo 'hread->thread' >> dictionary.txt
|
|
|
|
echo 'tamplete->template' >> dictionary.txt
|
|
|
|
echo 'prising->praising' >> dictionary.txt
|
2023-11-18 19:18:30 +00:00
|
|
|
echo 'wi->we, will, ' >> dictionary.txt
|
2023-07-08 13:29:56 +01:00
|
|
|
echo 'dayly->daily' >> dictionary.txt
|
|
|
|
echo 'erdinal->ordinal' >> dictionary.txt
|
|
|
|
echo 'wizars->wizard' >> dictionary.txt
|
2023-07-26 18:55:33 +01:00
|
|
|
echo 'pined->pinned' >> dictionary.txt
|
2023-08-04 21:52:22 +01:00
|
|
|
echo 'inidcate->indicate' >> dictionary.txt
|
|
|
|
echo 'unsoecific->unspecific' >> dictionary.txt
|
|
|
|
echo 'soecific->specific' >> dictionary.txt
|
|
|
|
echo 'cpecific->specific' >> dictionary.txt
|
2023-10-21 13:10:45 +01:00
|
|
|
echo 'incomatible->incompatible' >> dictionary.txt
|
|
|
|
echo 'maliciouse->malicious' >> dictionary.txt
|
|
|
|
echo 'strickt->strict' >> dictionary.txt
|
|
|
|
echo 'brak->break' >> dictionary.txt
|
2023-10-21 15:52:38 +01:00
|
|
|
echo 'booth->both' >> dictionary.txt
|
|
|
|
echo 'vcertificate->certificate' >> dictionary.txt
|
2023-10-26 21:05:35 +01:00
|
|
|
echo 'fron->front' >> dictionary.txt
|
|
|
|
echo 'ahndling->handling' >> dictionary.txt
|
|
|
|
echo 'previwe->preview' >> dictionary.txt
|
2023-11-29 20:26:17 +00:00
|
|
|
echo 'variouse->various' >> dictionary.txt
|
|
|
|
echo 'resumeed->resumed' >> dictionary.txt
|
2023-12-13 14:03:26 +00:00
|
|
|
echo 'autoamtic->automatic' >> dictionary.txt
|
2023-12-19 12:24:57 +00:00
|
|
|
echo 'connencted->connected' >> dictionary.txt
|
2024-01-04 15:01:01 +00:00
|
|
|
echo 'querygin->querying' >> dictionary.txt
|
2024-02-01 20:50:36 +00:00
|
|
|
echo 'soem->some' >> dictionary.txt
|
|
|
|
echo 'previosue->previous' >> dictionary.txt
|
|
|
|
echo 'bfore->before' >> dictionary.txt
|
|
|
|
echo 'lettet->letter' >> dictionary.txt
|
2024-02-14 21:22:20 +00:00
|
|
|
echo 'readly->readily' >> dictionary.txt
|
2023-07-08 16:39:53 +01:00
|
|
|
echo 'crome->Chrome' >> dictionary_code.txt
|
|
|
|
echo 'chromim->Chromium' >> dictionary_code.txt
|
|
|
|
echo 'kmdutill->kmdutil' >> dictionary_code.txt
|
2023-10-21 13:10:45 +01:00
|
|
|
echo 'ancrypted->encrypted' >> dictionary_code.txt
|
2023-08-25 09:15:49 +01:00
|
|
|
echo 'hadrware->hardware' >> dictionary_code.txt
|
2023-07-08 16:39:53 +01:00
|
|
|
echo 'sandbocie->Sandboxie' >> dictionary_code.txt
|
|
|
|
echo 'sanboxie->Sandboxie' >> dictionary_code.txt
|
2023-11-18 19:18:30 +00:00
|
|
|
echo "sandboxies->Sandboxie's, sandboxed, " >> dictionary_code.txt
|
2023-10-21 13:10:45 +01:00
|
|
|
echo 'reparese->reparse' >> dictionary_code.txt
|
2023-12-13 14:03:26 +00:00
|
|
|
echo 'tailing->trailing' >> dictionary_code.txt
|
2022-12-08 19:34:50 +00:00
|
|
|
# Only lowercase letters are allowed in --ignore-words-list
|
|
|
|
codespell --dictionary=dictionary.txt --dictionary=dictionary_rare.txt --dictionary=dictionary_code.txt \
|
2024-04-24 10:01:24 +01:00
|
|
|
--ignore-words-list="wil,unknwn,tolen,pevent,doubleclick,parm,parms,etcp,ois,ba,ptd,modell,namesd,stdio,uint,errorstring,ontext,atend,deque,ecounter,nmake,namess,inh,daa,varient,lite,uis,emai,ws,slanguage,woh,tne,typpos,enew,shft,seh,ser,servent,socio-economic,rime,falt,infor" \
|
2023-10-21 15:43:25 +01:00
|
|
|
--skip="./.git,./.github/workflows/codespell.yml,./dictionary*.txt,./Sandboxie/msgs/Text-*-*.txt,./Sandboxie/msgs/report/Report-*.txt,./SandboxiePlus/SandMan/*.ts,./Installer/Languages.iss,./Installer/isl/*.isl,./Sandboxie/common/Detours/Makefile,./Sandboxie/common/Detours/disasm.cpp,./Sandboxie/install/build.bat,./SandboxieTools/ImBox/dc/crypto_fast/xts_fast.c,./Sandboxie/apps/control/TreePropSheet.h,./Sandboxie/apps/control/PropPageFrame.h,./Sandboxie/apps/control/PropPageFrameDefault.h,./SandboxiePlus/SandMan/Troubleshooting/lang_*.json"
|