.editorconfig
specifies lf
line-endings, but there is no matching .gitattributes
#2946
Labels
.editorconfig
specifies lf
line-endings, but there is no matching .gitattributes
#2946
I happened to notice that multiple Privacy Badger related repositories have a
.editorconfig
which specifiesend_of_line = lf
. However it's possible that individual contributors have git configured to checkout ascrlf
(core.autocrlf
) especially in Windows, which may confuse editorconfig capable text editors.The solution would be adding a
.gitattributes
file with contents* text=auto eol=lf
sogit
would always check-out the repository with lf line-endings even on Windows regardless of the contributors git configuration as.gitattributes
takes priority. Optionally agit add --renormalize .
would ensure that all text files are checked into the repository withlf
line endings.See https://git-scm.com/docs/gitattributes#_end_of_line_conversion
I think this would also decrease the chance of EFForg/dnt-policy#22 happening at least when the repository is cloned with git.
I opened this issue instead of a PR, because in addition to being unsure of whether this is considered a problem, I think opening identical pull requests towards multiple repositories would be considered as spam especially out of the blue without any explanation.
The text was updated successfully, but these errors were encountered: