forked from syslog-ng/syslog-ng
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.astylerc
34 lines (25 loc) · 726 Bytes
/
.astylerc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# GNU style
--style=gnu
# convert tabs into spaces
--convert-tabs
# lines indented using 2 spaces
--indent=spaces=2
# add spaces around commas
--pad-comma
# max line lenght is 120 chars
--max-code-length=120
--max-instatement-indent=60
# pointer is aligned to the name of the variable
--align-pointer=name
# check files recursively in folder
--recursive
# do not create backups of formatted files
--suffix=none
# exclude folders && files
# on Travis these submodules are not checked out when cheking the style
--ignore-exclude-errors
--exclude="lib/ivykis"
--exclude="lib/compat/strcasestr.c"
--exclude="dbld"
# allow opening curly bracket in the same line as namespace e.g.: `namespace foobar {`
--attach-namespaces