-
-
Notifications
You must be signed in to change notification settings - Fork 258
Expand file tree
/
Copy pathcspell.config.yml
More file actions
51 lines (41 loc) · 1.54 KB
/
Copy pathcspell.config.yml
File metadata and controls
51 lines (41 loc) · 1.54 KB
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
# yaml-language-server: $schema=https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json
# The version of the configuration file format.
version: "0.2"
readonly: true
language: en-US
caseSensitive: true
ignorePaths:
- node_modules/
- .build/
- .git/
- .serena/
- CHANGELOG.md
- Package.resolved
- "**/*.xcworkspace/**"
- "**/*.xcodeproj/**"
- "**/__Snapshots__/**"
dictionaryDefinitions:
- name: local-codebase
path: dictionary.txt
dictionaries: [local-codebase]
patterns:
# GitHub is a proper noun, written "GitHub" in prose (which caseSensitive
# enforces). Its host in a URL is correctly lowercase, so this pattern
# captures the "github.com" host wherever it appears.
- name: github-url-host
pattern: /github\.com/g
# Long runs of base64/base64url characters - JWTs, encoded challenges,
# signatures and similar fixture data in tests - tokenize into meaningless
# fragments (e.g. a JWT header reliably splits into a chunk spelled "XVCJ").
# Enumerating every fragment in the dictionary is a losing game, so this
# pattern ignores any quoted run of 16+ base64/base64url characters instead.
- name: base64-blob
pattern: /['"][A-Za-z0-9+/_=-]{16,}['"]/g
# Percent-encoded URL fragments can produce artificial tokens such as
# "Blimit" from strings like "%3Blimit". Ignore those encoded fragments.
- name: url-encoded-fragment
pattern: /%[0-9A-Fa-f]{1,2}[A-Za-z][A-Za-z0-9._~!$&'()*+,;=:@/?-]*/g
ignoreRegExpList:
- github-url-host
- base64-blob
- url-encoded-fragment