Closed azzamsa closed 1 year ago
I haven't put much thought into ignoring directories.
Is opt/nodebin part of your gitignore? It would be possible to modify kondo so that it respects gitignore when searching.
Kondo will search recursively down each directory you provide it, so if opt
is shown even if opt/nodebin
is excluded, it will be found through opt
, hope that makes sense.
It means no mechanism to tell kondo what directory to ignore?
Not yet, but it could be added. Do you usually exclude directories by their exact path, or by glob?
How many directories do you exclude on average when you run kondo?
How many directories do you exclude on average when you run kondo?
one, it contains all language server installed through npm.
Not yet, but it could be added. Do you usually exclude directories by their exact path, or by glob?
So far, it is path.
It would be possible to add an ignore argument, would something like this work? Then you wouldn't need to manually list the directories via ls/exa.
kondo --ignore-dir opt/nodebin
Just curious, do you often do any other kind of filtering/preprocessing before passing the directory list to kondo?
Just curious, do you often do any other kind of filtering/preprocessing before passing the directory list to Kondo?
I run Kondo once a week, and the only directory in kondo $HOME
that I want to ignore is just one. So, previously, I just answer n
to the interactive prompt.
Do you also use the date filter?
@azzamsa could you try this branch (https://github.com/tbillington/kondo/tree/ignore-dirs) and see if it handles your use-case ? thank you :)
I had the same suggestion, and #90 works perfectly! @tbillington
Okay, thanks @Aziks0 , I'll merge it. Let me know if you have any issue :)
I'll close this issue for now.
kondo . --ignored-dirs opt/nodebin/
works like a charm! :tada:
Thanks for confirming @azzamsa :)
Hi.
I want to ignore some directories because I tend to run
kondo $HOME
.Nothing works.
Any suggestions?
Thanks! :heart: