Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude files efficiently #267

Closed
pereorga opened this issue Apr 25, 2023 · 1 comment
Closed

Exclude files efficiently #267

pereorga opened this issue Apr 25, 2023 · 1 comment

Comments

@pereorga
Copy link

I have this in .ecrc:

{
    "Exclude": [
        "docroot/img/",
...

However, I'm still getting thousands of messages when running npx ec --verbose:

Don't add docroot/img/XXXX.png to be checked.

It looks like ec is trying to loop for a directory of thousands of files, when it could avoid entering the directory in the first place. Not entering the directory could considerably decrease the time it takes the ec command to finish. Of course, the ec command can also be called in specific directories, but it is sometimes useful in a project to include all files by default, and just exclude some directories, so all new files and directories are checked by default.

@pereorga
Copy link
Author

Closing as duplicate of #122, sorry for the noise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant