Skip to content

Commit

Permalink
Configure cspell
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Sep 25, 2024
1 parent d75a43b commit 3c73dee
Show file tree
Hide file tree
Showing 4 changed files with 144 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
91 changes: 91 additions & 0 deletions project-words
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
activestorage
arefs
autocorrect
autoloaded
autorun
behavior
beind
bigdecimal
bindir
binread
Bizt
Bizw
bufnr
byteslice
codepoint
codepoints
concats
copen
corge
cvar
dont
eglot
eruby
EXTGLOB
FIXEDENCODING
Floo
fnmatch
fooo
hostedtoolcache
importmap
indexables
ipairs
Itest
ivar
Jaro
Kaigi
klass
kwargs
linearization
Linearizes
linearizing
lockfiles
lspconfig
Lstart
metaprogramming
mkpath
nargs
nodoc
noreturn
nvim
oneline
overnotify
qtlzwssomeking
quickfixes
quux
quxx
rdbg
realpath
redudancy
reparsing
requireds
rhtml
rindex
rjson
rmtree
rubyfmt
rubylibdir
rubylibprefix
setqflist
shadowenv
shellwords
snode
somethi
spoom
streerc
stringio
strscan
subexpression
supertypes
suppo
unaliased
unindexed
unparser
unresolve
vcall
Vinicius
Winkler
XQRK
yarp
YARP
YJIT

0 comments on commit 3c73dee

Please sign in to comment.