|
|
|
|
|
by lmm
4944 days ago
|
|
Automatic reformatting is the only solution, because you want to be able to make unreadable code readable without conscious effort. My preferred policy would be something like: 1. There is an agreed autoformatting template, checked into version control. 2. It is always ok to format the lines you are working on however you like, with the understanding that other people may run the autoformatter on the file. 3. It is always ok to run the autoformatter on a file you are working on (autoformatters only really work at file granularity). 4. It is not ok to format code you are not working on. |
|
Changing the name of a constant on line three doesn't give you license to autoformat the rest of the file.