aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/libghostty-vt/typos.toml
blob: 2158484104721496c2f34d3262e7d21a1f88a3f7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
[files]
extend-exclude = [
  # Build
  "build.zig.zon",
  "build.zig.zon.nix",
  "build.zig.zon.txt",
  "build.zig.zon.json",
  # Build artifacts
  "macos/build/*",
  "zig-out/*",
  # vendored code
  "vendor/*",
  "pkg/*",
  "src/stb/*",
  # "grey" color names are valid
  "src/terminal/res/rgb.txt",
  # Do not self-check
  "typos.toml",
  # Fonts
  "*.ttf",
  "*.otf",
  "*.bdf",
  # Images
  "*.png",
  "*.ico",
  "*.icns",
  # Valgrind nonsense
  "valgrind.supp",
  # Fuzz corpus (binary test inputs)
  "test/fuzz-libghostty/corpus/*",
  # Annotated binary snapshot fixtures
  "src/terminal/snapshot/testdata/*.hex",
  # Other
  "*.pdf",
  "*.data",
  "*.xib",
  "src/cli/lorem_ipsum.txt",
]

[default]
extend-ignore-re = [
  # Ignore typos in test expectations
  "testing\\.expect[^;]*;",
  "kHOM\\d*",
  # Ignore "typos" in sprite font draw fn names
  "draw[0-9A-F]+(_[0-9A-F]+)?\\(",
  # Ignore test data in src/input/paste.zig
  "\"hel\\\\x",
  # Ignore long hex-like IDs such as 815E26BA2EF1E00F005C67B1
  "[0-9A-F]{12,}",
  # Ignore base64-encoded strings
  "[A-Za-z0-9+/]{8,}={0,2}",
  # Ignore Apple four char codes
  'code="[A-Za-z]{4,8}"',
  '"[A-Za-z]{4}"\.fourCharCode',
]

[default.extend-words]
Pn = "Pn"
thr = "thr"
# Swift oddities
Datas = "Datas"
Requestor = "Requestor"
iterm = "iterm"
ACCES = "ACCES"
wdth = "wdth"
Strat = "Strat"
grey = "gray"
greyscale = "grayscale"
DECID = "DECID"
flate = "flate"
typ = "typ"
kend = "kend"
# Tai Tham is a script/writing system
Tham = "Tham"
# GTK
GIR = "GIR"
# terminfo
rin = "rin"
# sprites
ower = "ower"
# OpenType table names
loca = "loca"
# TinyIo
tio = "tio"
WRONLY = "WRONLY"

[type.po]
extend-glob = ["*.po"]
check-file = false

[type.swift.extend-words]
inout = "inout"