Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
vintprox43936dhow in blazes one can get such diff? (maybe it's
some troll swapping charsets)
AlgoRythm4583536dIt's highlighting that it should be const
* tabs vs spaces
* line endings
* other line endings
At our place it's the first order of day to get every dev with the same setup for these things, if not it can be unmanagble. fast
We have some ground rules but the setup does not have to be the exact same.
* UNIX line ending
* Strip whitespace
* Indent the way the language or framework dictates.
Unfortunately the last one is messing a lot with spaces. Golang proves that tabs are superior. Especially the 2 space indent can be a bit hard to follow at times.
Strip whitespace should not strip markdown files ideally. Double space is part of the syntax. We don't use it ourselves as it is asking for trouble.