Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
how in blazes one can get such diff? (maybe it's
some troll swapping charsets)
It'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.
Parzi94751yI have this issue all the goddamn time.
(Also, tags are CSV and can have spaces.)