Skip to content

Commit

Permalink
Add .gitattributes to ensure that line endings are uniform across pla…
Browse files Browse the repository at this point in the history
…tforms.

Also add .editorconfig entries so IDE doesn't mess with the files.
  • Loading branch information
TWiStErRob committed Feb 16, 2023
1 parent f43740d commit e03db0d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ root = true
indent_style = space
insert_final_newline = true
charset = utf-8
end_of_line = lf

[*.{kt,kts}]
ij_kotlin_code_style_defaults = KOTLIN_OFFICIAL
Expand All @@ -14,3 +15,6 @@ trim_trailing_whitespace = true
# This helps IDEA to format the code properly, see also spotless { } in build.gradle.kts.
ij_kotlin_allow_trailing_comma = false # Only used for declaration site
ij_kotlin_allow_trailing_comma_on_call_site = false

[*.bat]
end_of_line = crlf
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* text eol=lf
*.bat eol=crlf
*.png binary
*.jar binary

0 comments on commit e03db0d

Please sign in to comment.