-
Notifications
You must be signed in to change notification settings - Fork 36
/
.perltidyrc
49 lines (38 loc) · 1.37 KB
/
.perltidyrc
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
--maximum-line-length=72
# (note an indent is an indent, so no "continuation indents")
--indent-columns=2
# I usually want blank lines before comments, but it is not worth
# fighting with perltidy's inability to recognize blocks.
--noblanks-before-comments
--space-after-keyword="and or eq ne"
# the paren+args are part of the keyword
--nospace-after-keyword="if else elsif until unless while for foreach return switch case given when"
# break after the operator so it doesn't look like a syntax error
--want-break-after=". << >> -> && || and or"
# we don't put spaces after parens in english
--paren-tightness=2
--block-brace-tightness=2
--square-bracket-tightness=2
--brace-tightness=2
# who uses space before the peterbilt?
--nohanging-side-comments
--nospace-for-semicolon
--indent-block-comments
--minimum-space-to-comment=1
# never outdent
--nooutdent-long-lines
# these are currently broken wrt closing indent :-(
#--stack-opening-token
#--stack-closing-token
# still pondering this one -- seems to help in some cases, break others
#--nodelete-old-newlines
# Eric wants --break-at-correct-breakpoints
#--break-at-old-comma-breakpoints
#--break-at-old-trinary-breakpoints
#--break-at-old-logical-breakpoints
#--break-at-old-keyword-breakpoints
#--closing-token-indentation=0
--noindent-closing-brace
--noindent-closing-paren
#--vertical-tightness-closing=0
--nooutdent-long-quotes