Skip to content

Commit

Permalink
Configure spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Sep 25, 2024
1 parent 8501f5e commit d4c7983
Show file tree
Hide file tree
Showing 4 changed files with 141 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@ name: CI
on: [push, pull_request]

jobs:
spelling:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Node
env:
DISABLE_V8_COMPILE_CACHE: "1"
uses: actions/setup-node@v4
with:
node-version: "20.9"
cache: "yarn"
cache-dependency-path: "vscode"

- name: Run cspell
run: yarn global add cspell && cspell
lint_ruby:
runs-on: ubuntu-latest
steps:
Expand Down
36 changes: 36 additions & 0 deletions cspell.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"version": "0.2",
"dictionaryDefinitions": [
{
"name": "project-words",
"path": "./project-words",
"addWords": true
}
],
// cspell recognizes 'addon' as valid but we want to enforce 'add-on', but not within code
"words": [
"!addon"
],
"ignoreRegExpList": [
"\\.addon",
"addon\\.",
"\\(addon\\)",
"@addon",
"_addon",
"addon\\w+",
"addon_",
"addon\"",
"addon =",
"$\\s+addon^",
"\\|addon\\|",
"addon$" // could have false positives but unlikely
],
"language": "en",
"files": ["**/*.rb", "**/*.md", "**/*.markdown"],
"ignorePaths": [
"**/node_modules/**",
"vendor/**",
"test/fixtures/",
],
"dictionaries": ["ruby", "en_US", "shell", "file-types", "project-words"]
}
1 change: 1 addition & 0 deletions dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ type: ruby
up:
- ruby
- bundler
- cspell
- node:
yarn: true
version: 20.9.0
Expand Down
88 changes: 88 additions & 0 deletions project-words
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
activestorage
autocorrect
autoloaded
autorun
bigdecimal
bindir
binread
Bizt
Bizw
bufnr
byteslice
codepoint
codepoints
concats
copen
Corge
dont
eglot
Eglot
eruby
EXTGLOB
FIXEDENCODING
Floo
fnmatch
fooo
hostedtoolcache
importmap
indexables
Indexables
ipairs
Itest
ivar
Jaro
jekyll/editors.markdown
Kaigi
klass
kwargs
linearization
Linearizes
linearizing
lockfiles
lspconfig
Lstart
metaprogramming
mkpath
nargs
nodoc
noreturn
nvim
qtlzwssomeking
quickfixes
quux
quxx
rdbg
realpath
reparsing
requireds
rhtml
rindex
rjson
rmtree
rubyfmt
rubylibdir
rubylibprefix
setfqlist
setqflist
shadowenv
shellwords
snode
somethi
spoom
streerc
stringio
strscan
subexpression
supertypes
Supertypes
suppo
unaliased
unindexed
unparser
unresolve
Vinicius
Winkler
XQRK
yarp
YARP
YJIT

0 comments on commit d4c7983

Please sign in to comment.