Skip to content

Commit 62a3b50

Browse files
authored
Merge pull request #1398 from ccoveille-forks/go-exclusions
fix(dict): add Go exclusions
2 parents 90cacd6 + e6bedbd commit 62a3b50

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

crates/typos-cli/src/file_type_specifics.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,15 @@ pub(crate) const TYPE_SPECIFIC_DICTS: &[(&str, StaticDictConfig)] = &[
3838
"go",
3939
StaticDictConfig {
4040
ignore_idents: &[
41-
"flate", // https://pkg.go.dev/compress/flate
41+
"flate", // https://pkg.go.dev/compress/flate
42+
"Rela32", // https://pkg.go.dev/debug/elf#Rela32
43+
"Rela64", // https://pkg.go.dev/debug/elf#Rela64
44+
"NewCBCEncrypter", // https://pkg.go.dev/crypto/cipher#NewCBCEncrypter
45+
"NewCFBEncrypter", // https://pkg.go.dev/crypto/cipher#NewCFBEncrypter
46+
"O_WRONLY", // https://pkg.go.dev/os#O_WRONLY and https://pkg.go.dev/syscall#O_WRONLY
47+
"NOTE_FFOR", // https://pkg.go.dev/syscall?GOOS=darwin#NOTE_FFOR
48+
"TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA", // https://pkg.go.dev/crypto/tls#TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA
49+
"TLS_RSA_WITH_3DES_EDE_CBC_SHA", // https://pkg.go.dev/crypto/tls#TLS_RSA_WITH_3DES_EDE_CBC_SHA
4250
],
4351
ignore_words: &[],
4452
},

0 commit comments

Comments
 (0)