Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added spellchecker. #341

Merged
merged 1 commit into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -22,6 +22,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- 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 `created_time` and `last_updated_time` to `ml.get_model_group@200` ([#342](https://github.com/opensearch-project/opensearch-api-specification/pull/342))
- Added spellcheck linter ([#341](https://github.com/opensearch-project/opensearch-api-specification/pull/341))

### Changed

Expand All @@ -38,6 +39,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
Loading