This repository was archived by the owner on Apr 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.perltidyrc
172 lines (133 loc) · 3.82 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
##########################################
# Basic Options
--maximum-line-length=132
--indent-columns=2
--notabs
--nocheck-syntax
#--perl-syntax-check-flags="-c"
#--indent-only
## is the same as setting all of these:
#--freeze-newlines
#--freeze-whitespace
#--output-line-endings=unix
#--preserve-line-endings
#--iterations=1
##########################################
# Code Indentation Control
--continuation-indentation=2
#--starting-indentation-level=0
--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
# deprecated
#--noindent-closing-paren
--noindent-closing-brace
# deprecated
#--no-outdent-long-lines
# is the same as setting all of these:
--nooutdent-long-quotes
#--nooutdent-long-comments
--nooutdent-labels
--nooutdent-keywords
##########################################
# Whitespace Controls
#--freeze-whitespace
--paren-tightness=0
--square-bracket-tightness=1
--brace-tightness=0
--block-brace-tightness=0
--nospace-terminal-semicolon
--space-for-semicolon
--add-semicolons
--delete-semicolons
--add-whitespace
--delete-old-whitespace
#--want-left-space=???
--want-right-space="!"
--nospace-after-keyword="chomp"
--nospace-keyword-paren
--nospace-function-paren
--trim-qw
##########################################
# Comment Controls
--indent-block-comments
--nooutdent-long-comments
--minimum-space-to-comment=2
#--fixed-position-side-comment=40
--hanging-side-comments
--closing-side-comments
--closing-side-comment-interval=18
--closing-side-comment-maximum-text=15
--closing-side-comments-balanced
--closing-side-comment-prefix="## end"
--closing-side-comment-list="if elsif else unless for foreach sub while until : try catch BEGIN END"
--closing-side-comment-else-flag=0
--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
--opening-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