Improve .editorconfig setup

Add rules for all the project files.
Inspired by android studio editorconfig, results in
all files containing newlines at the end of file for
consistent code style throughout the app.

Change-Id: Ifc98fcf75f8e78526a0e186b2b14d44f0f7e45ac
This commit is contained in:
Michael Bestas 2021-08-25 17:27:50 +03:00
parent 96ffcc258d
commit d0cf968d06
No known key found for this signature in database
GPG key ID: CC95044519BE6669

View file

@ -1,4 +1,24 @@
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.{kt,kts}]
indent_size=4
insert_final_newline=true
max_line_length=100
indent_size = 4
max_line_length = 100
[app/src/main/res/values-*/strings.xml]
insert_final_newline = unset
trim_trailing_whitespace = unset
[*.md]
trim_trailing_whitespace = false
[gradlew.bat]
charset = latin1
end_of_line = crlf
insert_final_newline = false
[.editorconfig]
ij_editorconfig_spaces_around_assignment_operators = true