-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools: Added .editorconfig file for basic style enforcement
This helps editors (see http://editorconfig.org/#download) to apply the right indentation and encoding rules to files by default.
- Loading branch information
1 parent
81503e5
commit 838b9cf
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
|
||
[vcbuild.bat] | ||
end_of_line = crlf | ||
|
||
[*.{md,markdown}] | ||
trim_trailing_whitespace = false | ||
|
||
[{lib,src,test}/**.js] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[src/**.{h,cc}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[test/*.py] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[configure] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[Makefile] | ||
indent_style = tab | ||
indent_size = 8 | ||
|
||
[{deps,tools}/**] | ||
indent_style = ignore | ||
indent_size = ignore | ||
end_of_line = ignore | ||
trim_trailing_whitespace = ignore | ||
charset = ignore |