forked from client9/misspell
-
-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
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/[email protected]"
if [ -e .spellignore ]; then
go run "$MISSPELL_PACKAGE" -i "$(xargs echo -n < .spellignore | tr ' ' ',')" "$@"
else
go run "$MISSPELL_PACKAGE" "$@"
fi