Skip to content

Ignore words in file names only #3854

@ferrarimarco

Description

@ferrarimarco

Hi! Thanks for this nice tool.

Is there a way to ignore a word that appears in a file name, when --check-filenames is enabled?
I know that I can use the ignore-words-list = edn option, but I'd prefer to only ignore the edn word only for file names.
I think I'm looking for the equivalent of an inline ignore comment for file names.

For example, I'd like to ignore a false positive of a file with the edn extension:

$ codespell --config .codespellrc .
./TEMPLATES/.clj-kondo/config.edn: edn ==> end

Where .codespellrc is:

[codespell]
check-filenames =
check-hidden =

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions