client9 / misspell

Correct commonly misspelled English words in source files
MIT License
1.35k stars 114 forks source link

misspell should ignore go.sum file #159

Open fhs opened 5 years ago

fhs commented 5 years ago

misspell complains about spelling in auto-generated file go.sum:

$ mkdir /tmp/foo
$ cd /tmp/foo
$ go mod init example.com/foo
go: creating new go.mod: module example.com/foo
$ go get golang.org/x/sync@37e7f081c4d4
go: finding golang.org/x/sync 37e7f081c4d4
go: finding golang.org 37e7f081c4d4
go: finding golang.org/x 37e7f081c4d4
$ misspell .
go.sum:1:56: "YUO" is a misspelling of "YOU"
$ cat go.sum 
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw=
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
stmcginnis commented 2 years ago

I believe this is typically handled by adding go.sum and go.mod to your .misspellignore file.