You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yesterday, I submitted a PR and I struggled to make a succinct PR.
Although I was editing only a single line in a single file, my editor automatically re-wrote the entire file, adding Windows line endings too every line.
It turns out that this repo has a .editorconfig that mandates crlf line endings, but since most files do not have this line ending, editors that follow this file will automatically apply this change.
The reason this is a problem is that it makes it difficult to write small PRs that do not involve editing every line in the file.
I think you should just remove the .editorconfig file. I can't think of any reason why it's needed. but if it is needed, then you should probably convert the files to have CRLF line endings.
The text was updated successfully, but these errors were encountered:
Yesterday, I submitted a PR and I struggled to make a succinct PR.
Although I was editing only a single line in a single file, my editor automatically re-wrote the entire file, adding Windows line endings too every line.
It turns out that this repo has a
.editorconfig
that mandates crlf line endings, but since most files do not have this line ending, editors that follow this file will automatically apply this change.The reason this is a problem is that it makes it difficult to write small PRs that do not involve editing every line in the file.
Here is the offending line: https://github.com/go-oauth2/oauth2/blob/master/.editorconfig#L2
Steps to reproduce:
Observation
Most of the .go files have Unix line endings. Only four files actually adhere to the behavior expected in .editorconfig.
My Recommendation
I think you should just remove the .editorconfig file. I can't think of any reason why it's needed. but if it is needed, then you should probably convert the files to have CRLF line endings.
The text was updated successfully, but these errors were encountered: