I have a large codebase, where almost every single file isn't aligned properly, has bad spacing between variables or methods, or just generally ugly code.
I'd like to make it better as I work with it, but fixing things like indentation makes the commit history pretty ugly.
I'm not talking about small indentation issues where a line is one space off, I'm talking about something like
class Xyz
def foo
end
def bar
@something
end
end
What's a good way to clean up code like this, while keeping my history relevant? Should I just auto-align everything at once and do one huge commit?