mirror of
https://github.com/google/brotli.git
synced 2024-12-04 00:21:04 +00:00
Add an EditorConfig file to provide consistent style across editors. (#579)
This commit is contained in:
parent
52441069ef
commit
bc541f74e1
40
.editorconfig
Normal file
40
.editorconfig
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
# http://editorconfig.org
|
||||||
|
# Consistent coding style across different editors.
|
||||||
|
|
||||||
|
# Top-most file
|
||||||
|
root = true
|
||||||
|
|
||||||
|
# Global styles:
|
||||||
|
# - indent 2 spaces
|
||||||
|
# - add final new line
|
||||||
|
# - trim trailing whitespace
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
end_of_line = lf
|
||||||
|
indent_size = 2
|
||||||
|
indent_style = space
|
||||||
|
insert_final_newline = true
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
# BUILD:
|
||||||
|
# - indent 4 spaces
|
||||||
|
[BUILD]
|
||||||
|
indent_size = 4
|
||||||
|
|
||||||
|
# Makefile:
|
||||||
|
# - indent 1 tab
|
||||||
|
[Makefile]
|
||||||
|
indent_size = tab
|
||||||
|
indent_style = tab
|
||||||
|
|
||||||
|
# Markdown:
|
||||||
|
# - indent 4 spaces
|
||||||
|
# - trailing whitespace is significant
|
||||||
|
[*.md]
|
||||||
|
indent_size = 4
|
||||||
|
trim_trailing_whitespace = false
|
||||||
|
|
||||||
|
# Python
|
||||||
|
# - indent 4 spaces
|
||||||
|
[*.py]
|
||||||
|
indent_size = 4
|
Loading…
Reference in New Issue
Block a user