Open
Description
Misspell currently supports a -i
argument but I find it more flexible to have ignored words listed in a file. In the spirit of .gitignore
and other similar files, I propose supporting a .spellignore
file. Currently I have implemented this in a bash script:
#!/bin/bash
MISSPELL_PACKAGE="github.com/golangci/misspell/cmd/misspell@v0.6.0"
if [ -e .spellignore ]; then
go run "$MISSPELL_PACKAGE" -i "$(xargs echo -n < .spellignore | tr ' ' ',')" "$@"
else
go run "$MISSPELL_PACKAGE" "$@"
fi