Giter VIP home page Giter VIP logo

Comments (14)

azzamsa avatar azzamsa commented on May 28, 2024 1

kondo . --ignored-dirs opt/nodebin/ works like a charm! 🎉

from kondo.

tbillington avatar tbillington commented on May 28, 2024 1

Thanks for confirming @azzamsa :)

from kondo.

tbillington avatar tbillington commented on May 28, 2024

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.

from kondo.

tbillington avatar tbillington commented on May 28, 2024

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.

from kondo.

azzamsa avatar azzamsa commented on May 28, 2024

It means no mechanism to tell kondo what directory to ignore?

from kondo.

tbillington avatar tbillington commented on May 28, 2024

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?

from kondo.

azzamsa avatar azzamsa commented on May 28, 2024

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.

from kondo.

tbillington avatar tbillington commented on May 28, 2024

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?

from kondo.

azzamsa avatar azzamsa commented on May 28, 2024

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.

from kondo.

tbillington avatar tbillington commented on May 28, 2024

Do you also use the date filter?

from kondo.

tbillington avatar tbillington commented on May 28, 2024

@azzamsa could you try this branch (https://github.com/tbillington/kondo/tree/ignore-dirs) and see if it handles your use-case ? thank you :)

#90

from kondo.

Aziks0 avatar Aziks0 commented on May 28, 2024

I had the same suggestion, and #90 works perfectly! @tbillington

from kondo.

tbillington avatar tbillington commented on May 28, 2024

Okay, thanks @Aziks0 , I'll merge it. Let me know if you have any issue :)

from kondo.

tbillington avatar tbillington commented on May 28, 2024

I'll close this issue for now.

from kondo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.