2021-11-11 23:28:38 +00:00
|
|
|
# EditorConfig helps developers define and maintain consistent
|
|
|
|
# coding styles between different editors and IDEs
|
|
|
|
# EditorConfig is awesome: https://EditorConfig.org
|
|
|
|
|
|
|
|
root = true
|
|
|
|
|
|
|
|
[*]
|
|
|
|
charset = utf-8
|
2022-09-27 01:41:54 +01:00
|
|
|
indent_size = 2
|
|
|
|
indent_style = space
|
|
|
|
end_of_line = lf
|
2021-11-11 23:28:38 +00:00
|
|
|
insert_final_newline = true
|
2022-09-27 01:41:54 +01:00
|
|
|
trim_trailing_whitespace = true
|
2021-11-11 23:28:38 +00:00
|
|
|
|
2022-09-27 01:41:54 +01:00
|
|
|
# go
|
|
|
|
[*.go]
|
2021-11-11 23:28:38 +00:00
|
|
|
indent_style = tab
|
|
|
|
indent_size = 4
|
|
|
|
|
2022-09-27 01:41:54 +01:00
|
|
|
# python
|
|
|
|
[*.{ini,py,py.tpl,rst}]
|
|
|
|
indent_size = 4
|
|
|
|
|
|
|
|
# rust
|
|
|
|
[*.rs]
|
|
|
|
indent_size = 4
|
|
|
|
|
|
|
|
# documentation, utils
|
|
|
|
[*.{md,mdx,diff}]
|
2021-11-11 23:28:38 +00:00
|
|
|
trim_trailing_whitespace = false
|
2022-09-27 01:41:54 +01:00
|
|
|
|
|
|
|
# windows shell scripts
|
|
|
|
[*.{cmd,bat,ps1}]
|
|
|
|
end_of_line = crlf
|