|
|
|
|
|
by to3m
3253 days ago
|
|
Typically the whitespace rules are part of the standards as well. Spaces after if, spaces after commas, spaces before stars, after stars, around stars, alignment, newlines, two spaces after a full stop in a comment, the full works. People have spent entire meetings trying to come to agreement on this stuff. And then afterwards people keep checking in stuff that's "wrong", not intentionally, but because they've spent literally their entire lives doing it the other way, and they're stuck with the muscle memory. If you want the computer to make your entire codebase look roughly the same, you'll need more than a .editorconfig file... (For C and C++, I've been quite pleased with clang-format, provided somebody else gets to set it up. Of course, as well as the code layout, it also sorts out tabs vs spaces, line ending type, and indent width.) |
|
I don't much care for Go the language, but shipping a formatter with the compiler is an utterly genius move.