Skip to content

Commit ec0d568

Browse files
committed
feat: adding gitattributes and editor config files
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 6ecff2b commit ec0d568

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed

Diff for: .editorconfig

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
[*.sh]
9+
# like -i=2
10+
indent_style = space
11+
indent_size = 2
12+
13+
#shell_variant = posix # like -ln=posix
14+
#binary_next_line = true # like -bn
15+
switch_case_indent = true # like -ci
16+
space_redirects = true # like -sr
17+
#keep_padding = true # like -kp

Diff for: .gitattributes

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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+
.editorconfig text eol=lf
7+
.flake8 text eol=lf
8+
.gitattributes text eol=lf
9+
.gitignore text eol=lf
10+
11+
*.adoc text eol=lf
12+
*.c text eol=lf
13+
*.cmake text eol=lf
14+
*.cpp text eol=lf
15+
*.css text eol=lf
16+
*.dtsi text eol=lf
17+
*.gv text eol=lf
18+
*.h text eol=lf
19+
*.html text eol=lf
20+
*.in text eol=lf
21+
*.ino text eol=lf
22+
*.json text eol=lf
23+
*.ld text eol=lf
24+
*.md text eol=lf
25+
*.MD text eol=lf
26+
*.old text eol=lf
27+
*.patch text eol=lf
28+
*.pde text eol=lf
29+
*.properties text eol=lf
30+
*.py text eol=lf
31+
*.s text eol=lf
32+
*.S text eol=lf
33+
*.sh text eol=lf
34+
*.spec text eol=lf
35+
*.txt text eol=lf
36+
*.yml text eol=lf
37+
38+
# Denote all files that are truly binary and should not be modified.
39+
*.jpg binary
40+
*.pdf binary
41+
*.png binary
42+

0 commit comments

Comments
 (0)