Skip to content

Commit f7c36f9

Browse files
committed
Set conventions for spacing and indentation
1 parent 4caebaa commit f7c36f9

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.editorconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# This .editorconfig file specifies conventions for character set, spacing,
2+
# indentation etc. followed by the source code in this project.
3+
#
4+
# When contributing code, please use an editor that supports .editorconfig
5+
# https://editorconfig.org
6+
7+
root = true
8+
9+
[*]
10+
charset = utf-8
11+
end_of_line = lf
12+
trim_trailing_whitespace = true
13+
insert_final_newline = true
14+
indent_style = space
15+
indent_size = 2
16+
17+
# Make requires tab for indentation.
18+
[Makefile]
19+
indent_style = tab

.gitattributes

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# This file tells Git to only store LF in git.
2+
#
3+
# On Windows, Git will process all text files and
4+
# make sure that CRLF is replaced with LF when writing that file to
5+
# the object database and turn all LF back into CRLF when writing out
6+
# into the working directory.
7+
#
8+
# git-scm.com/docs/gitattributes#_end_of_line_conversion
9+
* text=auto

0 commit comments

Comments
 (0)