Skip to content

Commit 3102bae

Browse files
authored
Merge pull request stm32duino#1021 from fpistm/Force_lf
Force LF line endings
2 parents 6ebfb5e + 30ca0e1 commit 3102bae

File tree

3 files changed

+43
-12
lines changed

3 files changed

+43
-12
lines changed

.editorconfig

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
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+
18
[*.sh]
29
# like -i=2
310
indent_style = space

.gitattributes

+35-12
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,41 @@
33

44
# Explicitly declare text files you want to always be normalized and converted
55
# to native line endings on checkout.
6-
*.c text
7-
*.cpp text
8-
*.h text
9-
*.s text
10-
*.S text
11-
*.ld text
12-
*.txt text
13-
*.xml text
14-
*.py text
15-
*.md text
16-
*.json text
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+
*.pde text eol=lf
30+
*.properties text eol=lf
31+
*.py text eol=lf
32+
*.s text eol=lf
33+
*.S text eol=lf
34+
*.sh text eol=lf
35+
*.spec text eol=lf
36+
*.txt text eol=lf
37+
*.yml text eol=lf
1738

1839
# Denote all files that are truly binary and should not be modified.
19-
*.png binary
2040
*.jpg binary
41+
*.pdf binary
42+
*.png binary
43+

CI/astyle/.astylerc

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ style=kr
1313
# 2 spaces, convert tabs to spaces
1414
indent=spaces=2
1515
convert-tabs
16+
lineend=linux
1617

1718
# Indent switches and cases
1819
indent-classes

0 commit comments

Comments
 (0)