Code Files Mixed Line Endings #3995
-
Is there a recommended line endings in the DNN code base? Since we have added stylecop I am seeing just about every file I open up mixed line endings. Visual Studio is asking me to normalize this to resolve the errors. Do we have a strong stance on what we prefer such as We should define a strong opinion on this and add it to the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It looks like the closest we have is CRLF specified in Line 2 in 0bd8b22 There doesn't appear to be a StyleCop rule for line endings, but some of the auto-fixes may have introduced inconsistent line endings. Let's add |
Beta Was this translation helpful? Give feedback.
It looks like the closest we have is CRLF specified in
.gitattributes
Dnn.Platform/.gitattributes
Line 2 in 0bd8b22
There doesn't appear to be a StyleCop rule for line endings, but some of the auto-fixes may have introduced inconsistent line endings.
Let's add
crlf
to the.editorconfig
👍