Browse Source

feat(tool): Setup cspell

Signed-off-by: jld3103 <jld3103yt@gmail.com>
pull/840/head
jld3103 1 year ago
parent
commit
a4e21f559a
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 9
      .cspell/dart_flutter.txt
  2. 11
      .cspell/misc.txt
  3. 20
      .cspell/neon.txt
  4. 71
      .cspell/nextcloud.txt
  5. 60
      .cspell/tools.txt
  6. 50
      .cspell/webdav.txt
  7. 10
      .github/workflows/spellcheck.yaml
  8. 60
      cspell.json
  9. 8
      tool/update-cspell-dictionaries.sh

9
.cspell/dart_flutter.txt

@ -0,0 +1,9 @@
autofocus
gapless
lerp
pubspec
sublist
todos
unawaited
unfocus
writeln

11
.cspell/misc.txt

@ -0,0 +1,11 @@
browsable
cleartext
deeplinking
flathub
foss
fullscreen
playstore
postmarket
provokateurin
subroutes
uncategorized

20
.cspell/neon.txt

@ -0,0 +1,20 @@
crypton
exportables
fcmup
filesize
gotify
heckel
mocktail
nextpush
noprovider
ntfy
oled
oledas
rxdart
seti
siacs
sqflite
underspecified
updateshouldnotify
wakelock
zxing

71
.cspell/nextcloud.txt

@ -0,0 +1,71 @@
apirequest
applist
apppassword
approximative
appstore
bigfilechunking
bools
bulkupload
commenters
csapi
datetime
deletedshares
displayname
etag
fediverse
getapppassword
groupid
hovercard
iscustomavatar
itemsperpage
keepalive
keypair
lastmod
licence
logfile
logoheader
mimetypes
mountpoint
navigations
nextcloud
nextcloud's
openlocaleditor
organisation
prio
productname
publicpreview
reshares
resharing
rgdnvw
r'sharebymail
r'updatenotification
r'uppush
shareapi
sharebymail
sharee
shareesapi
shareinfo
statuscode
stime
stylesheet
subadmin
subadmins
subfiles
subline
tasktypes
textprocessing
totalitems
transferownership
trashbin
undelete
unifiedpush
unsharing
unstar
updatenotification
uppush
usercount
usergroup
userid
userroom
versionstring
whatsnew

60
.cspell/tools.txt

@ -0,0 +1,60 @@
aarch
allprojects
appindicator
autoptr
buildscript
buildsystem
buildx
cest
classpath
cloc
commitlint
dapplication
dists
endforeach
endfunction
endlegend
endswith
enduml
euxo
exiftool
extglob
freedesktop
fullpath
gboolean
gchar
genhtml
gradlew
hicolor
icudtl
inkscape
intellij
jetbrains
jvmargs
klass
lcov
libapp
libappindicator
libayatana
libflutter
libindicator
libsqlite
mipmap
ndebug
nproc
plantuml
precache
puml
rpath
startuml
stdlib
strconcat
strdupv
strfreev
subprojects
sysroot
tsvg
werror
workdir
xxxh
xxxhdpi

50
.cspell/webdav.txt

@ -0,0 +1,50 @@
copymove
dasl
davgetcontentlength
davgetcontenttype
davgetetag
davgetlastmodified
davresourcetype
fileid
getcontentlength
getcontenttype
getetag
getlastmodified
largefile
mkcol
multistatus
nccreationtime
ncdatafingerprint
nchaspreview
ncisencrypted
ncmetadataetag
ncmounttype
ncnote
ncrichworkspace
ncuploadtime
nodestcoll
noncoll
noparent
occommentscount
occommentshref
occommentsunread
ocdownloadurl
ocfavorite
ocfileid
ocid
ocmsharepermissions
ocownerdisplayname
ocownerid
ocpermissions
ocsize
ocssharepermissions
owncloud
propertyupdate
propfind
proppatch
propstat
propstats
resourcetype
sharees
systemtag
webdav

10
.github/workflows/spellcheck.yaml

@ -0,0 +1,10 @@
name: 'Check spelling'
on:
pull_request:
jobs:
spellcheck:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: streetsidesoftware/cspell-action@v3

60
cspell.json

@ -0,0 +1,60 @@
{
"version": "0.2",
"language": "en",
"words": [
"OpenAPI"
],
"ignorePaths": [
"**.iml",
"**.log",
"**.svg",
"**/assets/**",
"**/build/**",
"**/coverage/**",
"**/ephemeral/**",
"**/l10n/!(en.arb)",
"external",
"packages/app/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java",
"packages/app/android/gradlew*",
"packages/file_icons/lib/src/data.dart",
"packages/neon_lints/lib",
"packages/nextcloud/test/files"
],
"dictionaries": [
"bash",
"dart_flutter",
"en_US",
"misc",
"neon",
"nextcloud",
"softwareTerms",
"tools",
"webdav"
],
"dictionaryDefinitions": [
{
"name": "dart_flutter",
"path": ".cspell/dart_flutter.txt"
},
{
"name": "misc",
"path": ".cspell/misc.txt"
},
{
"name": "neon",
"path": ".cspell/neon.txt"
},
{
"name": "nextcloud",
"path": ".cspell/nextcloud.txt"
},
{
"name": "tools",
"path": ".cspell/tools.txt"
},
{
"name": "webdav",
"path": ".cspell/webdav.txt"
}
]
}

8
tool/update-cspell-dictionaries.sh

@ -0,0 +1,8 @@
#!/bin/bash
set -euxo pipefail
cd "$(dirname "$0")/.."
for file in .cspell/*; do
rm "$file"
cspell lint --quiet --unique --words-only . | tr '[:upper:]' '[:lower:]' | sort -f | uniq > "$file" || true
done
Loading…
Cancel
Save