4 ms·
Same here, with a twist: the test suite does: global reformat (uncrustify or astyle, depending on the team), build, run the actual tests. As people almost alway
by Ace17 8y ago
Same here, with a twist: the test suite does: global reformat (uncrustify or astyle, depending on the team), build, run the actual tests.
As people almost always run the test suite before checking code in, all the project stays properly formatted.
My experience is: each time a team started doing this, all coding-style related discussions vanished, and it became a non-issue.
It turns out it's a lot easier to accept a coding style you're not the one doing the actual formatting (this is why, BTW, I think stylechecking hooks alone are a bad idea).