mirror of
https://github.com/coder/coder.git
synced 2026-09-23 14:03:57 +08:00
typos-cli 1.47.x started flagging `unmarshaling` and `marshaling` as
misspellings of the British-English double-l forms.
The Go standard library uses the single-l American English spelling
throughout `encoding/json`, `encoding/xml`, etc., so these are correct
and intentional.
Adds both words to the `extend-words` allowlist so the linter accepts
the canonical Go spelling regardless of which typos version is in use.
---
🤖 Built with AI assistance.
70 lines
1.7 KiB
TOML
70 lines
1.7 KiB
TOML
[default]
|
|
extend-ignore-identifiers-re = ["gho_.*"]
|
|
extend-ignore-re = ["(#|//)\\s*spellchecker:ignore-next-line\\n.*"]
|
|
|
|
[default.extend-identifiers]
|
|
alog = "alog"
|
|
Jetbrains = "JetBrains"
|
|
IST = "IST"
|
|
MacOS = "macOS"
|
|
AKS = "AKS"
|
|
O_WRONLY = "O_WRONLY"
|
|
AIBridge = "AI Bridge"
|
|
|
|
[default.extend-words]
|
|
AKS = "AKS"
|
|
# do as sudo replacement
|
|
doas = "doas"
|
|
darcula = "darcula"
|
|
Hashi = "Hashi"
|
|
trialer = "trialer"
|
|
encrypter = "encrypter"
|
|
# as in helsinki
|
|
hel = "hel"
|
|
# this is used as proto node
|
|
pn = "pn"
|
|
# typos doesn't like the EDE in TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA
|
|
EDE = "EDE"
|
|
# HELO is an SMTP command
|
|
HELO = "HELO"
|
|
LKE = "LKE"
|
|
byt = "byt"
|
|
cpy = "cpy"
|
|
Cpy = "Cpy"
|
|
typ = "typ"
|
|
# file extensions used in seti icon theme
|
|
styl = "styl"
|
|
edn = "edn"
|
|
Inferrable = "Inferrable"
|
|
# Go standard library uses American English single-l spelling throughout encoding/json etc.
|
|
unmarshaling = "unmarshaling"
|
|
marshaling = "marshaling"
|
|
IIF = "IIF"
|
|
|
|
[files]
|
|
extend-exclude = [
|
|
"**.svg",
|
|
"**.png",
|
|
"**.lock",
|
|
"go.sum",
|
|
"go.mod",
|
|
# These files contain base64 strings that confuse the detector
|
|
"**XService**.ts",
|
|
"**identity.go",
|
|
"**/*_test.go",
|
|
"**/*.test.tsx",
|
|
"**/pnpm-lock.yaml",
|
|
"tailnet/testdata/**",
|
|
"site/src/pages/SetupPage/countries.tsx",
|
|
"provisioner/terraform/testdata/**",
|
|
"coderd/azureidentity/roots_darwin.go",
|
|
"coderd/azureidentity/azureidentity.go",
|
|
# notifications' golden files confuse the detector because of quoted-printable encoding
|
|
"coderd/notifications/testdata/**",
|
|
"agent/agentcontainers/testdata/devcontainercli/**",
|
|
# aibridge fixtures contain truncated streaming chunks that look like typos
|
|
"aibridge/fixtures/**",
|
|
# go-vcr cassettes contain real API responses with 3rd-party content
|
|
"coderd/externalauth/gitprovider/testdata/**",
|
|
]
|