Skip to content

Commit bfe6843

Browse files
committed
chore: add git attributes and editor config
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 4abec7b commit bfe6843

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed

.editorconfig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[*]
2+
end_of_line = lf
3+
insert_final_newline = true
4+
indent_style = space
5+
indent_size = 2
6+
trim_trailing_whitespace = true
7+
8+
[keywords.txt]
9+
indent_style = tab
10+
11+
[*.sh]
12+
# like -i=2
13+
indent_style = space
14+
indent_size = 2
15+
16+
#shell_variant = posix # like -ln=posix
17+
#binary_next_line = true # like -bn
18+
switch_case_indent = true # like -ci
19+
space_redirects = true # like -sr
20+
#keep_padding = true # like -kp

.gitattributes

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Set the default behavior, in case people don't have core.autocrlf set.
2+
* text=auto
3+
4+
# Explicitly declare text files you want to always be normalized and converted
5+
# to native line endings on checkout.
6+
.astyleignore text eol=lf
7+
.astylerc text eol=lf
8+
.editorconfig text eol=lf
9+
.flake8 text eol=lf
10+
.gitattributes text eol=lf
11+
.gitignore text eol=lf
12+
13+
*.adoc text eol=lf
14+
*.c text eol=lf
15+
*.cmake text eol=lf
16+
*.cpp text eol=lf
17+
*.css text eol=lf
18+
*.dtsi text eol=lf
19+
*.gv text eol=lf
20+
*.h text eol=lf
21+
*.html text eol=lf
22+
*.in text eol=lf
23+
*.ino text eol=lf
24+
*.json text eol=lf
25+
*.ld text eol=lf
26+
*.md text eol=lf
27+
*.MD text eol=lf
28+
*.old text eol=lf
29+
*.patch text eol=lf
30+
*.pde text eol=lf
31+
*.properties text eol=lf
32+
*.py text eol=lf
33+
*.s text eol=lf
34+
*.S text eol=lf
35+
*.sh text eol=lf
36+
*.spec text eol=lf
37+
*.txt text eol=lf
38+
*.yml text eol=lf
39+
40+
# Denote all files that are truly binary and should not be modified.
41+
*.jpg binary
42+
*.pdf binary
43+
*.png binary
44+

0 commit comments

Comments
 (0)