Skip to content

Support a .spellignore file #23

Open
@silverwind

Description

@silverwind

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions