If it is possible to auto-format code before and after a source control commit, checkout, diff, etc.

Posted by dennisjtaylor on Stack Overflow See other posts from Stack Overflow or by dennisjtaylor
Published on 2009-12-10T17:36:33Z Indexed on 2010/04/02 4:03 UTC
Read the original article Hit count: 282

Filed under:
|
|
|
|

If it is possible to auto-format code before and after a source control commit, checkout, diff, etc. does a company really need a standard code style?

It feels like standard coding style debates that have been raging since programming began like "put the bracket on the following line" or "properly indent your (" are no longer essential.

I realize in languages where white space matters the diff will have to consider it but for languages where the style is a personal preference is there really a need to worry about it anymore?

© Stack Overflow or respective owner

Related posts about version-control

Related posts about autoformatting