Giter Site home page Giter Site logo

Comments (5)

dsherret avatar dsherret commented on May 27, 2024 1

Ah, I remember that now and thanks for spotting this! I'll add a test for this scenario and look into this soon.

from dprint.

dsherret avatar dsherret commented on May 27, 2024 1

Should be fixed now in the latest release.

from dprint.

dsherret avatar dsherret commented on May 27, 2024

@bradzacher I was looking at this more and realized the CLI args just overridding what's in the config isn't a good design. I opened #804 -- Does what's done there make sense? Let me know if you have any suggestions.

from dprint.

bradzacher avatar bradzacher commented on May 27, 2024

That seems logical to me.

Based on what I've seen internally - all the usecases we have for CLI args is exactly as you describe - we are instructing dprint to format a subset of the allowed files and nothing more.

I don't even think people use the exclude arg - they just run dprint fmt "some/folder/**/*" to ensure their changes are good before submitting them.

Also worth noting that from CI we also don't even pass globs any more or call output-file-paths - we have got it fast enough to just run dprint fmt on CI!!

from dprint.

dsherret avatar dsherret commented on May 27, 2024

Great. I'm going to merge this and do a minor release tonight. I'm pretty confident that most people would expect this behaviour.

Also worth noting that from CI we also don't even pass globs any more or call output-file-paths - we have got it fast enough to just run dprint fmt on CI!!

That's great to hear and it's the way it should be! Way less complexity.

from dprint.

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.