I'm looking for a tool/way to solve a problem that is a little difficult to describe in a simple Google search, so hoping you all can help -- if I'm in the wrong site, let me know!
I am part of a small team of developers. We're friendly and get along well, but we have very different coding styles that we each feel strongly about. So far, we've all been working on different projects, so this has not been an issue. But, we will soon be working on the same code, and the conflicting code styles has the potential to make our code quite messy.
The obvious solution is to hammer out a shared coding standard, and have everyone change the way the code going forward. I really don't want to do this because:
a) In a sense, this is just not important enough to warrant the time and effort to sit and argue about this until we finally agree. Even though my teammate's style might drive me nuts, his code still works fine, which is all that matters to our boss.
b) This is simultaneously incredibly important and personal to each of us -- I hate even the thought of having to change the way I code just because I happened to be in a team with people who code in a different way. And, frankly, I'd be angry and resentful, and I'm sure they'd be too, so the resulting loss of team morale and friendliness might not be worth all this trouble.
So, what I ideally want is to have my cake and eat it too: Have some tool/pipeline that converts our differently-formatted pieces of code into 1 single style (doesn't matter what) before committing it to our shared repo (so that our code isn't messy in the repo) and then, crucially, converts it BACK to our specific style when we check out the code to our local laptops (so that none of us have to change the way we code).
Is there a single (free!) tool that can do this for us? Or is this a very niche thing that I would have to hack together myself?
FYI, please note that I have very little CI/CD experience.