Skip to content

Commit

Permalink
Use Vale spellchecker on YAML files. (#680)
Browse files Browse the repository at this point in the history
* Use Vale spellchecker on YAML files.

Signed-off-by: dblock <[email protected]>

* Quote title and description schema categories.

Signed-off-by: dblock <[email protected]>

* Preprocess away backtick-quoted values.

Signed-off-by: dblock <[email protected]>

* Fixed several Vale violations.

Signed-off-by: dblock <[email protected]>

---------

Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock authored Nov 18, 2024
1 parent 4c1ea37 commit ccce065
Show file tree
Hide file tree
Showing 128 changed files with 534 additions and 735 deletions.
221 changes: 2 additions & 219 deletions .cspell
Original file line number Diff line number Diff line change
@@ -1,227 +1,10 @@
aarch
actiongroup
actiongroups
aggregatable
aoss
APIV
argjson
asciifolding
authc
authinfo
authtoken
autocut
autofollow
backendroles
backpressure
beider
Bobg
Boundsdouble
boxplot
Boxplot
caverphone
CBOR
charfilters
chisquared
chuhlomin
cpuacct
cuserr
daitch
dangoslen
dashboardsinfo
datarows
decompounder
Decompounder
dedup
deprovision
determinized
distilbert
DNFOF
docvalue
Downsample
downsampling
Downsampling
cbor
evals
ewma
Ewma
faiss
fielddata
Fielddata
forcemerge
Formattable
fragmenter
Fragmenter
freqs
generateonbehalfoftoken
geodistance
geohash
geohex
Geohex
geoip
geopoint
geoshape
geospatial
geotile
gsub
Gsub
haasephonetik
hashcode
heteroscedastic
hnsw
homoscedastic
hotthreads
huggingface
hybridfs
ignorecase
integ
internalusers
Intertransport
ipam
Jelinek
kibanainfo
kibanaserver
koelnerphonetik
kstem
kuromoji
Kuromoji
languageset
latlon
Léon
localstats
Lovins
lucene
Lucene
lycheeverse
marvinpinto
memlock
metaphone
mget
millis
Millis
mlockall
mmap
mmapfs
mmdb
mokotoff
Moneyball
msearch
msmarco
mtermvectors
mult
Multisearch
multitenancy
mxyz
nanos
Nanos
nbest
nfkc
ngram
nguyenvukhang
niofs
nmslib
nodeattrs
nodesdn
nonword
noops
nori
Nori
nysiis
ONNX
opendistro
opensearch
OPENSEARCH
opensearchproject
opensearchstaging
ords
OSCPU
oversample
Oversample
performanceanalyzer
permissionsinfo
pipefail
pipenv
preconfigure
preconfigured
prefilter
pretrain
pretrained
prirep
rawfile
readingform
rebalance
Rebalance
recoverysource
Refn
reindex
Reindex
relo
reloadcerts
remotestore
reprovision
rerank
Rerank
Reranker
rethrottle
Rethrottle
rolesmapping
Rolespan
rollup
Rollup
rollups
Rollups
romaji
roundtrips
Rudnick
ruleset
scriptless
securityconfig
signoff
slowlog
Slowlog
slurpfile
smartcn
Smartcn
snapshotted
softmax
softprops
Sorani
sslinfo
stoptags
stopwords
Stringifiedboolean
Stringifiedinteger
subqueries
subschemas
subword
syserr
tcnative
tdigest
tenantinfo
termvectors
tfidf
Tfidf
thomaseizinger
Tika
timeframe
tlbr
tokenfilters
translog
Translog
trbl
truststore
tubone
ulimits
Undeploys
unigrams
Unmanaged
unmatch
untriaged
updateable
upsert
urldecode
vectory
whoamiprotected
wordnet
yber
Yrtsd
جامد
جامدات
OPENSEARCH
2 changes: 1 addition & 1 deletion .vale.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ StylesPath = ".github/vale/styles"
Vocab = "OpenSearch"
MinAlertLevel = warning

[*]
[*.{yaml,yml}]
BasedOnStyles = Vale, OpenSearch

Vale.Spelling = NO
Expand Down
4 changes: 1 addition & 3 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,14 @@ export default [
parser: parserYml
},
plugins: {
'yml': pluginYml,
'@cspell': pluginCspell
'yml': pluginYml
},
rules: {
'yml/no-empty-document': 'off',
'yml/quotes': ['error', { prefer: 'single', avoidEscape: true }],
'yml/plain-scalar': ['error', 'always'],
'yml/no-trailing-zeros': 'error',
'yml/no-multiple-empty-lines': 'error',
'@cspell/spellchecker': ['error', { customWordListFile: '.cspell', autoFix: true }],
'yml/sort-sequence-values': ['error', { pathPattern: '.*', order: { type: 'asc' } }]
}
}
Expand Down
Loading

0 comments on commit ccce065

Please sign in to comment.