Skip to content

Commit

Permalink
chore: normalize line endings
Browse files Browse the repository at this point in the history
_This change is similar to Incendo/cloud#786
  • Loading branch information
Djaytan committed Jan 17, 2025
1 parent 9c32041 commit 25c8958
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
12 changes: 11 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
# EditorConfig: https://editorconfig.org/

# Top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
indent_size = 4
end_of_line = lf
indent_style = space
indent_size = 4
insert_final_newline = true
max_line_length = off
trim_trailing_whitespace = true

# Avoid Markdown new lines removal
[*.md]
trim_trailing_whitespace = false
13 changes: 6 additions & 7 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#
# https://help.github.com/articles/dealing-with-line-endings/
#
# Linux start script should use lf
/gradlew text eol=lf
# Documentation: https://www.git-scm.com/docs/gitattributes

# These are Windows script files and should use crlf
*.bat text eol=crlf
# Set default behavior to automatically normalize line endings.
* text=auto eol=lf

# Enforce CRLF line endings in Windows batch scripts to avoid issues.
*.cmd text eol=crlf
*.bat text eol=crlf

0 comments on commit 25c8958

Please sign in to comment.