Skip to content

Commit

Permalink
ci: add cspell check
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan Perruzza <[email protected]>
  • Loading branch information
EthanPERRUZZA committed Jan 23, 2025
1 parent a53329c commit 6182908
Show file tree
Hide file tree
Showing 6 changed files with 195 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ jobs:
commit_titles | TERM=xterm-color .github/scripts/check-commit-titles.sh
- name: Spell check
run: |
npm install --include=dev
npm run spellcheck
check_reuse_compliance:
runs-on: ubuntu-latest
steps:
Expand Down
55 changes: 55 additions & 0 deletions cspell/cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"version": "0.2",
"language": "en",
"files": [
"**/*.en.md",
"**/*.fr.md",
],
"import": [
"@cspell/dict-rust/cspell-ext.json",
"@cspell/dict-sql/cspell-ext.json",
"@cspell/dict-fr-fr/cspell-ext.json",
],
"dictionaries": [
"sql",
"rust",
"project-words",
"unwanted-words",
"names",
"softwareTerms",
],
"overrides": [
{
"filename": "**/*.en.md",
"dictionaries": [
"en_US",
"en-gb",
]
},
{
"filename": "**/*.fr.md",
"dictionaries": [
"fr-fr",
]
},
],
"allowCompoundWords": false,
"caseSensitive": false,
"dictionaryDefinitions": [
{
"name": "project-words",
"path": "./project-words.txt",
"addWords": true
},
{
"name": "unwanted-words",
"path": "./unwanted-words.txt",
"addWords": true
},
{
"name": "names",
"path": "./names.txt",
"addWords": true
},
],
}
14 changes: 14 additions & 0 deletions cspell/names.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Klara
Breit
Senejko's
Céline
Morgane
Loïc
Dessagne
Bellebia
Djamal
Ménin
Senejko
Marchal
Durupt
Mémin
111 changes: 111 additions & 0 deletions cspell/project-words.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
OSRD
VecDeque
Odoo
Motis
möglich
Remarquable
opensource
TVDS
autonumber
mgsin
Isort
pytype
stringifying
mtlynch
pytest
parallelizable
macbooks
virtiofs
osxkeychain
creds
relref
balise
odometry
Tdriver
Tindication
FLOI
Twarning
maxmemory
allkeys
exploitability
EPSG
autosquash
MRSP
Dreiländer
DGEX
QGIS
Kutta's
Kutta
Runge
plpgsql
ABAC
Sémaphore
Clignotant
MARECO
STDCM
editoast
osrdyne
ERTMS
Netzgrafik
Valkey
ETCS
rabbitmq
CODEOWNERS
tchou
choo
pathfinding
topo
ralen
BAPR
xchg
networker
openrail
railjson
Cruda
typesystem
rustc
privs
modelv
privlvl
unsignaled
interprétabilité
GPRS
FRMCS
ETML
EPSF
DAAT
COVIT
VUTR
VUSS
CAPI
BMCV
IPCS
ITCS
TECS
TSCS
VUTP
IPCS
BMVU
opendata
fosdem
devroom
Österreichische
Bundesbahnen
Schweizerische
Bundesbahnen
eurobalises
eurobalise
euroloop
Euroradio
odométriques
eurocab
réplicas
scopé
scoper
hashées
linté
Transifex
refacto
fabriquants
redistribuable
tractionner
5 changes: 5 additions & 0 deletions cspell/unwanted-words.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
imagepostlinkedin
marginauto
pageinfo
dont
autoplay
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,16 @@
"build": "hugo --gc --cleanDestinationDir --minify",
"build:preview": "hugo --buildDrafts --buildFuture",
"start": "hugo server",
"spellcheck": "cspell -c cspell/cspell.json",
"test": "echo \"Error: no test specified\" && exit 1",
"clean": "clean-install"
},
"devDependencies": {
"@cspell/dict-fr-fr": "^2.2.5",
"@cspell/dict-rust": "^4.0.11",
"@cspell/dict-sql": "^2.2.0",
"autoprefixer": "^10.4.17",
"cspell": "^8.17.2",
"hugo-bin-extended": "^0.121.2",
"postcss": "^8.4.33",
"postcss-cli": "^11.0.0"
Expand Down

0 comments on commit 6182908

Please sign in to comment.