Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Eli Schwartz 2018-05-03 00:10:22 -04:00 committed by Allan McRae
parent 076b6184de
commit 1e7a191136
2 changed files with 22 additions and 7 deletions

20
.editorconfig Normal file
View file

@ -0,0 +1,20 @@
# EditorConfig configuration for pacman
# http://EditorConfig.org
# Top-most EditorConfig file
root = true
# Unix-style newlines without trailing whitespaces, but with a newline
# ending every file, utf-8 charset, set indent to tabs
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
indent_style = tab
[NEWS,HACKING]
indent_style = space
[*.py]
indent_style = space

View file

@ -11,13 +11,8 @@ Coding Style
1. All code should be indented with tabs. (Ignore the use of only spaces in 1. All code should be indented with tabs. (Ignore the use of only spaces in
this file.) A tab size of two spaces is used when calculating line widths, this file.) A tab size of two spaces is used when calculating line widths,
which should be a maximum of 80 characters. By default, source files which should be a maximum of 80 characters. An EditorConfig file is used
contain the following Vim modeline: to set this project-wide default.
+
[source,C]
-------------------------------------------
/* vim: set noet: */
-------------------------------------------
2. When opening new blocks such as 'while', 'if', or 'for', leave the opening 2. When opening new blocks such as 'while', 'if', or 'for', leave the opening
brace on the same line as the beginning of the codeblock. The closing brace brace on the same line as the beginning of the codeblock. The closing brace