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 12, 2025
1 parent 9c32041 commit 39d5a07
Show file tree
Hide file tree
Showing 2 changed files with 18 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
14 changes: 7 additions & 7 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#
# 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

# Force batch scripts to always use CRLF line endings so that if a repo is accessed
# in Windows via a file share from Linux, the scripts will work.
*.cmd text eol=crlf
*.bat text eol=crlf

0 comments on commit 39d5a07

Please sign in to comment.