dotnet / dotnet/format

Write documentation on configuring a git repo with automatic line endings

Open
#1,099 2 comments 0 reactions 0 assignees View on GitHub
Documentation
Dominant language
No language data
Stars
1.9k
Forks
173
Avg merge
10d 13h
Merged PRs (30d)
1

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.