Skip to content

Commit 7be846e

Browse files
committed
chore: add .editorconfig and .gitattributes
Add editor configuration and line ending normalization for consistent development across platforms. Signed-off-by: Srikanth Patchava <srpatcha@users.noreply.github.com>
1 parent 4202228 commit 7be846e

2 files changed

Lines changed: 47 additions & 0 deletions

File tree

.editorconfig

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
trim_trailing_whitespace = true
7+
charset = utf-8
8+
indent_style = space
9+
indent_size = 4
10+
11+
[Makefile]
12+
indent_style = tab
13+
14+
[*.md]
15+
trim_trailing_whitespace = false
16+
17+
[*.{patch,diff}]
18+
end_of_line = unset
19+
insert_final_newline = unset
20+
trim_trailing_whitespace = unset
21+
charset = unset
22+
indent_style = unset
23+
indent_size = unset

.gitattributes

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# BitBake recipes and configuration (the bulk of this repository)
5+
*.bb text
6+
*.bbappend text
7+
*.bbclass text
8+
*.inc text
9+
*.conf text
10+
*.cfg text
11+
12+
# Other text files actually present in this repository
13+
*.md text diff=markdown
14+
*.txt text
15+
*.json text
16+
*.xml text
17+
18+
# Binary files actually present in this repository
19+
*.png binary
20+
*.zip binary
21+
22+
# Patch and diff files: keep verbatim (do NOT normalize line endings)
23+
*.patch -text
24+
*.diff -text

0 commit comments

Comments
 (0)