Skip directories early
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.
Loading
Please register or sign in to comment