Skip to content

Commit bbbf535

Browse files
committed
feat: add editor config
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 44880e2 commit bbbf535

File tree

2 files changed

+68
-0
lines changed

2 files changed

+68
-0
lines changed

.editorconfig

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
[*.patch]
9+
insert_final_newline = unset
10+
indent_style = unset
11+
indent_size = unset
12+
trim_trailing_whitespace = unset
13+
14+
[*.md]
15+
trim_trailing_whitespace = false
16+
17+
[*.sh]
18+
# like -i=2
19+
indent_style = space
20+
indent_size = 2
21+
22+
#shell_variant = posix # like -ln=posix
23+
#binary_next_line = true # like -bn
24+
switch_case_indent = true # like -ci
25+
space_redirects = true # like -sr
26+
#keep_padding = true # like -kp

.gitattributes

Lines changed: 42 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy