1# This perltidy run control file contains what is to be considered an
2# approximation of the code formatting conventions used by the Munin
3# project.
4#
5# The munin source code is a mix of several different coding
6# styles. So an important use of this file is to tidy up old cruft.
7#
8# It is not mandated that code must be run through perltidy with these
9# settings before every commit, as I believe the best formatting is
10# done by humans, but the formatting should be close to what a
11# perltidy run would yield.
12#
13# The content is negotiable.
14#
15# Use: perltidy --profile=./perltidyrc [FILE]...
16
17--backup-and-modify-in-place
18--output-line-ending=unix
19--continuation-indentation=4   # Don't really like these, but setting
20                               # it to 0 is not good either ...
21--nooutdent-long-lines
22--paren-tightness=2
23--square-bracket-tightness=1
24--brace-tightness=2
25--block-brace-tightness=0
26--nospace-for-semicolon
27--nooutdent-long-comments
28# Default: --nocuddled-else
29# Default: --noopeningbrace-on-new-line
30--opening-brace-always-on-right
31--opening-token-right
32--stack-opening-tokens
33--stack-closing-tokens
34--break-before-all-operators
35--maximum-consecutive-blank-lines=2
36--opening-hash-brace-right
37--maximum-line-length=0
38--indent-columns=4
39--opening-sub-brace-on-new-line
40--keep-old-blank-lines=1
41--minimum-space-to-comment=2
42
43