Code Monkey home page Code Monkey logo

Comments (7)

mgechev avatar mgechev commented on August 17, 2024

My concern would be for systems where the file look up is expensive (for example, at Google we're using one). This may delay the initial start of revive a lot depending on how deeply nested is the current working directory.

from revive.

delfick avatar delfick commented on August 17, 2024

perhaps introduce a cli argument to disable config discovery?

I imagine for most people, file lookup isn't expensive.

from revive.

mgechev avatar mgechev commented on August 17, 2024

I can make vim find a revive.toml to use, but I'd rather rely on revive itself for that.

Maybe that's good enough? I'm trying to keep the configuration minimalistic and do not introduce any further configuration options/logic when it could be achieved with external tools.

I'll keep the issue open in case this is a pain that many people want to resolve.

from revive.

chavacava avatar chavacava commented on August 17, 2024

Another concern with auto discovery is that you do not know precisely which configuration you are actually using (if you known which conf you are "auto discovering" then why not just point it explicitly?)

from revive.

delfick avatar delfick commented on August 17, 2024

But it already finds a config in a home directory, which means developers can get different results from revive on their different computers based on whether they have one in home directory or not, whereas if one is in the repository, then they will have consistent results if they just say revive.

I'd also argue that auto finding configuration by looking up folders is a common pattern and less surprising than it not doing that.

from revive.

mgechev avatar mgechev commented on August 17, 2024

But it already finds a config in a home directory, which means developers can get different results from revive on their different computers based on whether they have one in home directory or not, whereas if one is in the repository, then they will have consistent results if they just say revive.

I'm more leaning towards dropping this feature.

I'd also argue that auto finding configuration by looking up folders is a common pattern and less surprising than it not doing that.

This is more common for dynamic languages, I'd say. In Node.js it's a common practice. I'm not confident it's a good one.

from revive.

mgechev avatar mgechev commented on August 17, 2024

Let's close this feature request for now and revisit if it's in a higher demand.

from revive.

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.