forked from harleypig/Dist-Zilla-Plugin-Test-Legal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.perltidyrc
142 lines (116 loc) · 3.39 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
##########################################
# Basic Options
--maximum-line-length=0
--indent-columns=2
--notabs
#--check-syntax
#--perl-syntax-check-flags="-c"
##########################################
# Code Indentation Control
--continuation-indentation=2
--noline-up-parentheses
--closing-token-indentation=0
# is the same as setting all of these:
#--closing-paren-indentation=0
#--closing-square-bracket-indentation=0
#--closing-brace-indentation=0
--noindent-closing-paren
--noindent-closing-brace
--nooutdent-long-quotes
--nooutdent-labels
--nooutdent-keywords
##########################################
# Whitespace Controls
--paren-tightness=0
--square-bracket-tightness=0
--brace-tightness=0
--block-brace-tightness=0
--nospace-terminal-semicolon
--space-for-semicolon
--add-semicolons
--delete-semicolons
--add-whitespace
--delete-old-whitespace
--want-right-space="!"
--nospace-after-keyword="chomp"
--nospace-function-paren
--trim-qw
##########################################
# Comment Controls
--indent-block-comments
--nooutdent-long-comments
--minimum-space-to-comment=2
--hanging-side-comments
--closing-side-comments
--closing-side-comment-list="if elsif else unless for foreach sub while until : try catch"
--closing-side-comment-interval=18
--closing-side-comment-prefix="## end"
--closing-side-comment-maximum-text=15
--closing-side-comment-else-flag=0
--closing-side-comments-balanced
--static-block-comments
--static-block-comment-prefix="##"
--nooutdent-static-block-comments
--static-side-comments
--static-side-comment-prefix="##"
##########################################
# Skipping Selected Sections of Code
--format-skipping
--format-skipping-begin="## BEGIN UNTIDY"
--format-skipping-end="## END UNTIDY"
##########################################
# Line Break Control
#--nofreeze-newlines
--cuddled-else
--noopening-brace-on-new-line
--noopening-sub-brace-on-new-line
--noopening-anonymous-sub-brace-on-new-line
--nobrace-left-and-indent
--noopening-brace-always-on-right
--opening-token-right
# is the same as setting all of these:
#--opening-paren-right
#--opening-hash-brace-right
#--opening-square-bracket-right
--vertical-tightness=1
# is the same as:
#--paren-vertical-tightness=1
#--square-bracket-vertical-tightness=1
#--brace-vertical-tightness=1
--vertical-tightness-closing=0
# is the same as:
#--paren-vertical-tightness-closing=0
#--square-bracket-vertical-tightness-closing=0
#--brace-vertical-tightness-closing=0
--block-brace-vertical-tightness=0
--block-brace-vertical-tightness-list="if elsif else unless for foreach sub while until : try catch"
--stack-opening-tokens
# is the same as:
#--stack-opening-paren
#--stack-opening-hash-brace
#--stack-opening-square-bracket
--stack-closing-tokens
# is the same as:
#--stack-closing-paren
#--stack-closing-hash-brace
#--stack-closing-square-bracket
--delete-old-newlines
--add-newlines
--break-before-all-operators
##########################################
# Controlling List Formatting
--comma-arrow-breakpoints=2
##########################################
# Retaining/Ignoring Existing Line Breaks
--break-at-old-logical-breakpoints
--break-at-old-keyword-breakpoints
--break-at-old-ternary-breakpoints
--keep-interior-semicolons
##########################################
# Blank Line Control
--blanks-before-comments
--blanks-before-subs
--blanks-before-blocks
--long-block-line-count=0
--maximum-consecutive-blank-lines=1
--keep-old-blank-lines=1