format icon indicating copy to clipboard operation
format copied to clipboard

Write documentation on configuring a git repo with automatic line endings

Open JoeRobich opened this issue 4 years ago • 2 comments

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).

JoeRobich avatar Apr 19 '21 21:04 JoeRobich

is it worth potentially emitting a message in dotnet format itself to let folks know about this?

jmarolf avatar Apr 19 '21 22:04 jmarolf

I was just searching about this until I came here. Not only for dotnet format, but for enforcing IDE0055 on build as well.

Youssef1313 avatar Oct 06 '22 13:10 Youssef1313