|
| 1 | +package match |
| 2 | + |
| 3 | +// goDictionary lists Go-specific words that aspell would otherwise flag in |
| 4 | +// commit message bodies and diffs. Prepended to the imports extracted per file. |
| 5 | +// Lowercased at use; case here is only for readability. |
| 6 | +var goDictionary = []string{ |
| 7 | + // keywords |
| 8 | + "break", "default", "func", "interface", "select", |
| 9 | + "case", "defer", "go", "map", "struct", |
| 10 | + "chan", "else", "goto", "package", "switch", |
| 11 | + "const", "fallthrough", "if", "range", "type", |
| 12 | + "continue", "for", "import", "return", "var", |
| 13 | + |
| 14 | + // predeclared types and builtins |
| 15 | + "bool", "byte", "complex64", "complex128", |
| 16 | + "error", "float32", "float64", "int", |
| 17 | + "int8", "int16", "int32", "int64", "rune", "string", |
| 18 | + "uint", "uint8", "uint16", "uint32", "uint64", "uintptr", |
| 19 | + "len", "cap", |
| 20 | + |
| 21 | + // common stdlib identifiers |
| 22 | + "str", "filepath", "url", "Fatalf", "ctx", |
| 23 | + "Println", "Stdin", "stdout", "stderr", "Stdout", "Stderr", |
| 24 | + "errorf", "println", "Sprintf", "Printf", "Unmarshal", |
| 25 | + "Getenv", "Errorf", "Atoi", "EOF", "exec", "iter", |
| 26 | + |
| 27 | + // go tooling and environment variables |
| 28 | + "gomemlimit", "gomaxprocs", "gogc", "godebug", "goflags", |
| 29 | + "goos", "goarch", "gopath", "goroot", "goproxy", |
| 30 | + "gocache", "gomodcache", "goprivate", "gotoolchain", "cgo", |
| 31 | + |
| 32 | + // project-specific identifiers |
| 33 | + "tt", "yml", "ok", "cmd", "utf", "oauth", "args", |
| 34 | +} |
0 commit comments