Closed janpfeifer closed 4 weeks ago
I installed the most recent version (go install github.com/boyter/scc@master
), and with that version, the --exclude-dir
works as I would expect it.
Seems you ran into the bug I introduced when I moved over to the new file walker where I forgot to add in exclude directory. As you discovered fixed in a later version.
You might also want to consider adding a .ignore or .sccignore file to avoid you having to set this via the command line each time.
Many thanks @boyter !
I'll let you close the issue when you think appropriate (when the fix is released depending how you are managing it?)
Btw, .sccignore
(it makes more sense than .ignore
) is not working for now (?)
But .ignore
works, so I'm using that for now.
@janpfeifer so the .ignore is there in case you want to have the same rules applied to tools such as ag and rg, but for those cases where you don't want that .sccignore works well too.
Going to close as the fix has been pushed out in the latest versions so hopefully nobody runs into this again. Thanks for responding back, it helps with knowing if these are save to close.
Describe the bug I added a directory in
--exclude-dir
and it is still including the file in the output.See line here, where
internal/protos
directory is not excluded:Expected behavior Files in the directories marked by
--exclude-dir
should have been excluded.Desktop (please complete the following information):
Thank you! 😃
ps. : Apologies in advance if I'm doing something wrong, it's the first time I'm using the tool. But I did read the
--help
of the flag, so if anything maybe whatever I'm doing wrong could be included in the documentation ?