Skip to content

Commit

Permalink
Added spellchecker.
Browse files Browse the repository at this point in the history
Fixed SlowlogThresholds, from_address, and pages_processed.

Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock committed Jun 19, 2024
1 parent 16bcb63 commit 76d3a2a
Show file tree
Hide file tree
Showing 12 changed files with 1,016 additions and 29 deletions.
173 changes: 173 additions & 0 deletions .cspell
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
APIV
Boxplot
Bobg
Boundsdouble
CBOR
DNFOF
Decompounder
Downsample
Downsampling
Ewma
Fielddata
Formattable
Fragmenter
Geohex
Gsub
Intertransport
Jelinek
Kuromoji
Lovins
Lucene
Millis
Multisearch
Nanos
Nori
ONNX
OPENSEARCH
OSCPU
Oversample
Rebalance
Reindex
Rethrottle
Rolespan
Rollup
Rollups
Slowlog
Sorani
Stringifiedboolean
Stringifiedinteger
Tfidf
Tika
Translog
Unmanaged
Yrtsd
aarch
actiongroup
actiongroups
aggregatable
asciifolding
authc
authinfo
authtoken
autocut
backendroles
beider
boxplot
caverphone
charfilters
chisquared
chuhlomin
cpuacct
daitch
dangoslen
dashboardsinfo
decompounder
dedup
determinized
docvalue
downsampling
evals
ewma
faiss
fielddata
forcemerge
fragmenter
freqs
generateonbehalfoftoken
geohash
geohex
geoip
geotile
gsub
haasephonetik
heteroscedastic
homoscedastic
hotthreads
hybridfs
integ
internalusers
kibanainfo
kibanaserver
koelnerphonetik
kstem
kuromoji
languageset
lucene
lycheeverse
marvinpinto
metaphone
mget
millis
mlockall
mmap
mmapfs
mmdb
mokotoff
msearch
mtermvectors
mult
multitenancy
mxyz
nanos
nbest
nfkc
ngram
niofs
nmslib
nodeattrs
nodesdn
noops
nori
nysiis
opendistro
opensearch
opensearchproject
ords
oversample
performanceanalyzer
permissionsinfo
pipefail
prefilter
prirep
rawfile
readingform
rebalance
recoverysource
reindex
relo
reloadcerts
remotestore
rethrottle
rolesmapping
rollup
rollups
romaji
roundtrips
ruleset
scriptless
securityconfig
slowlog
slurpfile
snapshotted
softmax
sslinfo
stoptags
stopwords
subqueries
subschemas
subword
tdigest
tenantinfo
termvectors
tfidf
tokenfilters
translog
unigrams
unmatch
untriaged
updateable
upsert
urldecode
vectory
whoamiprotected
wordnet
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Added support to read outputs from requests in tests([#324](https://github.com/opensearch-project/opensearch-api-specification/pull/324))
- Added `eslint-plugin-eslint-comments` ([#333](https://github.com/opensearch-project/opensearch-api-specification/pull/333))
- Added `distribution` field to `OpenSearchVersionInfo` ([#336](https://github.com/opensearch-project/opensearch-api-specification/pull/336))
- Added spellcheck linter ([#341](https://github.com/opensearch-project/opensearch-api-specification/pull/341))

### Changed

Expand All @@ -37,6 +38,9 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

- Fixed GitHub pages ([#215](https://github.com/opensearch-project/opensearch-api-specification/pull/215))
- Fixed missing 201 response in `/{index}/_doc/{id}` ([#331](https://github.com/opensearch-project/opensearch-api-specification/pull/331))
- Fixed `SlowlogThresholds` ([#341](https://github.com/opensearch-project/opensearch-api-specification/pull/341))
- Fixed `from_address` in notifications ([#341](https://github.com/opensearch-project/opensearch-api-specification/pull/341))
- Fixed `pages_processed` in rollups ([#341](https://github.com/opensearch-project/opensearch-api-specification/pull/341))

### Security

Expand Down
11 changes: 8 additions & 3 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import pluginJs from '@eslint/js'
import pluginLicenseHeader from 'eslint-plugin-license-header'
import pluginTs from '@typescript-eslint/eslint-plugin'
import pluginYml from 'eslint-plugin-yml'
import pluginCspell from '@cspell/eslint-plugin'

export default [
pluginJs.configs.recommended,
Expand All @@ -24,7 +25,8 @@ export default [
plugins: {
'@typescript-eslint': pluginTs,
'license-header': pluginLicenseHeader,
'eslint-comments': pluginComments
'eslint-comments': pluginComments,
'@cspell': pluginCspell
},
rules: {
...pluginJs.configs.recommended.rules,
Expand Down Expand Up @@ -92,6 +94,7 @@ export default [
'*/'
]
],
'@cspell/spellchecker': ['error', { customWordListFile: '.cspell', autoFix: true }]
}
},
...pluginYml.configs['flat/standard'],
Expand All @@ -101,12 +104,14 @@ export default [
parser: parserYml
},
plugins: {
yml: pluginYml
'yml': pluginYml,
'@cspell': pluginCspell
},
rules: {
'yml/no-empty-document': 'off',
'yml/quotes': 'off',
'yml/plain-scalar': 'off'
'yml/plain-scalar': 'off',
'@cspell/spellchecker': ['error', { customWordListFile: '.cspell', autoFix: true }]
}
}
]
Loading

0 comments on commit 76d3a2a

Please sign in to comment.