Skip to content

Commit 021b725

Browse files
authored
Merge pull request #56 from fpistm/config
chore: add .editorconfig and .gitattributes
2 parents adfe735 + fab2e8d commit 021b725

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed

.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

.gitattributes

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

0 commit comments

Comments
 (0)