mirror of
https://github.com/google/googletest.git
synced 2026-04-30 19:09:20 +08:00
chore: add .editorconfig and .gitattributes
Add .editorconfig for consistent formatting and .gitattributes for line ending normalization.
This commit is contained in:
parent
d72f9c8aea
commit
fab81cb483
21
.editorconfig
Normal file
21
.editorconfig
Normal file
@ -0,0 +1,21 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
charset = utf-8
|
||||
|
||||
[*.{c,h,cpp,hpp}]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
|
||||
[*.{yml,yaml}]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
|
||||
[Makefile]
|
||||
indent_style = tab
|
||||
24
.gitattributes
vendored
Normal file
24
.gitattributes
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
||||
|
||||
# Explicitly declare text files
|
||||
*.md text diff=markdown
|
||||
*.txt text
|
||||
*.csv text
|
||||
*.yml text
|
||||
*.yaml text
|
||||
*.json text
|
||||
*.xml text
|
||||
*.html text diff=html
|
||||
*.css text diff=css
|
||||
|
||||
# Denote binary files
|
||||
*.png binary
|
||||
*.jpg binary
|
||||
*.jpeg binary
|
||||
*.gif binary
|
||||
*.ico binary
|
||||
*.pdf binary
|
||||
*.zip binary
|
||||
*.gz binary
|
||||
*.tar binary
|
||||
Loading…
x
Reference in New Issue
Block a user