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

Autofixes should not run on unstaged files #214

Open
LiamPattinson opened this issue Dec 10, 2024 · 0 comments
Open

Autofixes should not run on unstaged files #214

LiamPattinson opened this issue Dec 10, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@LiamPattinson
Copy link
Collaborator

Autofixes may break a user's file (especially unsafe fixes). To ensure any issues are recoverable, Fortitude should refuse to modify a file which is modified but unstaged in the user's Git repo, similar to how clang-format and clippy work. This behaviour could be overridden with the --allow-dirty flag.

@LiamPattinson LiamPattinson added the enhancement New feature or request label Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant