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

Whitespace errors in the git commits - autoformat before commit #2756

Open
gcp opened this issue Jan 2, 2025 · 1 comment
Open

Whitespace errors in the git commits - autoformat before commit #2756

gcp opened this issue Jan 2, 2025 · 1 comment

Comments

@gcp
Copy link

gcp commented Jan 2, 2025

Issue

Looking at the git log of a bunch of aider commits, I see a lot of red due to whitespace errors (e.g. lines with just a bunch of spaces in them). I'm guessing this is an issue for most programming languages (I'm using Rust and C++).

It would be nice if aider either could clean this up itself before committing, or support common code formatting tools (clang-format, rustfmt, ...) to automatically do this before committing.

Version and model info

Aider v0.70.0
Main model: claude-3-5-sonnet-20241022 with diff edit format, infinite output
Weak model: claude-3-5-haiku-20241022
Git repo: .git with 46 files
Repo-map: using 1024 tokens, auto refresh

@gcp
Copy link
Author

gcp commented Jan 3, 2025

support common code formatting tools (clang-format, rustfmt, ...) to automatically do this before committing.

To be clear, I'm aware this could potentially be done with hooks, but that's not appropriate for all codebases. Still, the code that aider writes could be cleaned up.

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

1 participant