forked from vmware-tanzu/vm-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_typos.toml
More file actions
68 lines (62 loc) · 2.62 KB
/
_typos.toml
File metadata and controls
68 lines (62 loc) · 2.62 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Copyright (c) 2025 Broadcom. All Rights Reserved.
# Broadcom Confidential. The term "Broadcom" refers to Broadcom Inc.
# and/or its subsidiaries.
# Check common typos using the https://github.com/crate-ci/typos tool in GitHub actions
# Use "typos ." in that directory or "typos <your controller directory>" to check for typos locally.
[files]
extend-exclude = [
"go.mod",
"go.sum",
"artifacts",
"external/",
"api-docs/",
"**/config/crd/external-crds/*",
"**/*.json",
# There are typos in these directories but since they are pulled from external sources.
"**/pkg/util/netplan/**",
"**/pkg/util/cloudinit/**",
# Ignore OVFs.
"**/test/builder/testdata/**/*.ovf",
"**/test/builder/testdata/**/*.yaml",
]
[default.extend-words]
HashiCorp = "HashiCorp"
Hashi = "Hashi" # Part of HashiCorp
exportfs = "exportfs" # Linux NFS command
unmarshaling = "unmarshaling"
# Don't correct ANDed - flagged as Ded - as gateway API use it everywhere
Ded = "Ded"
DNE = "DNE" # Does Not Exist
[default]
extend-ignore-re = [
# Because "importas" is an concatenation of "import as"
"importas",
# Because we decided to call channel source a "cource"
"[cC]ource",
# VMIs
"vmi-.*",
# -- Taken from https://github.com/crate-ci/typos/blob/master/docs/reference.md
# Next-line ignore. Use // spellchecker:ignore-next-line
"(#|//)\\s*spellchecker:ignore-next-line\\n.*",
# Line ignore with trailing // spellchecker:disable-line
"(?Rm)^.*(#|//)\\s*spellchecker:disable-line$",
# Line block with // spellchecker:<on|off>:
"(?s)(#|//)\\s*spellchecker:off.*?\\n\\s*(#|//)\\s*spellchecker:on",
# -- Taken from https://github.com/sirwart/ripsecrets/blob/main/src/lib.rst
# Private keys
"-{5}BEGIN PRIVATE KEY-{5}(?:$|[^-]{63,}-{5}END)",
"-{5}BEGIN RSA PRIVATE KEY-{5}(?:$|[^-]{63,}-{5}END)",
"-{5}BEGIN OPENSSH PRIVATE KEY-{5}(?:$|[^-]{63,}-{5}END)",
# -- Our own
# Certificates
"-{5}BEGIN CERTIFICATE-{5}(?:$|[^-]{63,}-{5}END)",
# CSR
"-{5}BEGIN CERTIFICATE REQUEST-{5}(?:$|[^-]{63,}-{5}END)",
# IPv6 addresses (various formats including compressed notation with ::)
# Full format: 8 groups of 1-4 hex digits
"\\b[0-9a-fA-F]{1,4}(?::[0-9a-fA-F]{1,4}){7}(?:/[0-9]{1,3})?\\b",
# Compressed format with :: (matches addresses like 2605:a601:a0ba:720:2ce6::1)
"\\b[0-9a-fA-F]{1,4}(?::[0-9a-fA-F]{1,4}){0,6}::[0-9a-fA-F]{0,4}(?::[0-9a-fA-F]{1,4}){0,6}(?:/[0-9]{1,3})?\\b",
# Any sequence that looks like an IPv6 segment (at least 2 colon-separated hex groups)
"\\b[0-9a-fA-F]{1,4}:[0-9a-fA-F]{1,4}(?::[0-9a-fA-F]{0,4}){1,6}(?:/[0-9]{1,3})?\\b",
]