Skip to content
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

Add support for ratcheting #3

Open
Machine-Maker opened this issue Dec 28, 2024 · 3 comments
Open

Add support for ratcheting #3

Machine-Maker opened this issue Dec 28, 2024 · 3 comments

Comments

@Machine-Maker
Copy link

Would be great to mirror the spotless functionality of being able to ratchet changes so as to not have one big "formatting" commit. Basically it just compares the branch with some ref and only runs it on the modified files.

@lukebemish
Copy link
Member

Immaculate currently has no git integration (and no reason for it in most cases, since gradle's up-to-date checks are quite powerful). That said, I do see the use case for something like what you describe -- I need to think a bit about how to best integrate it into gradle in a nicer way than how spotless approaches it, but I can definitely look into that.

@Machine-Maker
Copy link
Author

I think you can probably do it already, just by setting the files in a specific workflow to be the modified files. I wrote something (specific to the project I work on) that does it for checkstyle you can see here, no idea if its the optimal way or whatever. https://pastes.dev/fFMzcVlrk9

@lukebemish
Copy link
Member

Yeah, the basic idea is that I need to run something to determine which files should be considered inputs or not, based on the specified rachet -- probably easiest with a valuesource or the like as a filter? I'll poke it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants