The current code already allows skipping directories, but the full path
must be given, e.g. "./.git" instead of just ".git", as "codespell ." is
the default.
Allow --skip to be used with relative directory names, too.
The current code already allows skipping directories, but the full path
must be given, e.g. "./.git" instead of just ".git", as "codespell ." is
the default.
As the name of the directory is constant for all files within, move the
check for the directory before the loop.
Also skip descending.
A new command line option -r / --regex is implemented to allow the user
to set the regular expression which is used to find the words in the
input lines. This is useful in projects where you want to overwrite the
default expression, for example to split words after an underscore like
in ID_ESTABLISED.
The new regex option cannot be used together with the --write-changes
functionality since it is not guarantied that this will not break code.
The regular expression for splitting a line into words can be compiled
at startup instead for every file again. This gives some minor
performance improvements, especially when parsing a lot of files.
Enhance the --dictionary option so that multiple dictionary files can
be specified at the command line. With this feature projects can use
the standard dictionary and in addition their own custom files.