Write documentation on configuring a git repo with automatic line endings
Developers who primarily write code in Windows may want to use dotnet-format in CI running on a Linux machine. Without configuring the .gitattributes correctly, line endings may be reported as formatting errors. Suggest that the user remove end_of_line from the .editorconfig and follow these steps to add a .gitattributes file (https://docs.github.com/en/github/getting-started-with-github/configuring-git-to-handle-line-endings#refreshing-a-repository-after-changing-line-endings).
is it worth potentially emitting a message in dotnet format itself to let folks know about this?
I was just searching about this until I came here. Not only for dotnet format, but for enforcing IDE0055 on build as well.