How do we handle the newline issue while "everyone can contribute"?
I want everyone in the world to use Git to collaborate, what is the best way to handle this while including "everyone".
Here is the problem
On this commit, we ended up with some "newline noise" at the end of the file and didn't know how to best handle it in the context of the www-gitlab-com
project.
https://gitlab.com/gitlab-com/www-gitlab-com/commit/97c865672f909a9894814c667b0b17ff844b2026
The explanations on the internet are great, but they expect everyone dealing with this issue to be as interested in the history of Unix as I am.
https://robots.thoughtbot.com/no-newline-at-end-of-file
Our own guides for this, seem like the type of thing that most people coming from a non-technical background, would just gloss over.
Also see #2 (closed) here https://about.gitlab.com/handbook/#writing-style-guidelines
I see 3 options, please pick one or suggest more.
- Ignore the issue and keep working around it.
- Use
git blame
when we see it and reach out to the person in a friendly manner and suggest they change settings in their text editor. - Add something to our style guide saying that we put an actual empty line at the end of each file.