-
-
Notifications
You must be signed in to change notification settings - Fork 498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
📎 New --changed
argument
#346
Comments
I was a lerna user for long and I really like its My proposal is this:
If there's no default branch configured, users will have to specify what they want to compare against with the CLI, for this we either:
Let me know what you think about this. If we can come to a conclusion on what to implement, I'm happy to contribute it! |
I love your proposal, I don't have anything to add! Feel free to take it and work on it. If you have any questions, just add a comment there and we'll try to answer |
So as I'm implementing this, a couple of questions came up. My approach is based on how the gitignore files are handled. Basically I'm running the
|
If with
Our CLI doesn't support glob patterns as input. Doing |
Internally, we don't try to be smart; we take the paths passed by the CLI and convert them into
Then, we rely on the information that |
I think I cracked what's going on. So based on my testing, glob patterns are actually accepted and the bug I mentioned about the So i guess the real bug is that the CLI does not error if a glob pattern is provided. I'll file this as a separate issue. |
Oh I see, I just thought because you said |
Description
Biome now has support for VCS, which means that we can unlock new features that make the life of developers easier!
One of these features is the addition of a new argument called --changed to the CLI. When we pass this argument, Biome will execute check/format/etc. only to those files that were changed.
Technical details
I am still determining the implementation of this argument. There are two alternatives:
What do you guys think?
The text was updated successfully, but these errors were encountered: