-
Notifications
You must be signed in to change notification settings - Fork 5
/
.perltidyrc
124 lines (105 loc) · 3.32 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
#################
# Composite Options
##################
# -gnu, -pbp, etc. Place first so individual constituent options may be
# overridden.
##################
# I/O Control
##################
--backup-and-modify-in-place # -b
--backup-file-extension=/orig # -bext=/orig
--logfile # -log
--no-standard-output # -nst
--standard-error-output # -se
##################
# Basic Options
##################
--indent-columns=2 # -i=2
--maximum-line-length=78 # -l=78
--extended-syntax # -xs
--preserve-line-endings # -ple
--add-terminal-newline # -atnl
--converge # -conv (a.k.a -it=4)
##################
# Code Indentation Control
##################
--continuation-indentation=2 # -ci=2
--extended-continuation-indentation # -xci
--line-up-parentheses # -lp
--line-up-parentheses-exclusion-list='w(2' # -lpxl='w(2'
--closing-token-indentation=1 # -cti=1
--outdent-long-quotes # -olq
--outdent-labels # -ola
##################
# Whitespace Control
##################
--paren-tightness=2 # -pt=2
--square-bracket-tightness=2 # -sbt=2
--brace-tightness=1 # -bt=1
--block-brace-tightness=1 # -bbt=1
--tight-secret-operators # -tso
--no-space-for-semicolon # -nsfs
--add-semicolons # -asc
--add-whitespace # -aws
--delete-old-whitespace # -dws
--space-prototype-paren=0 # -spp=0
--logical-padding # -lop
##################
# Comment Controls
##################
--ignore-side-comment-lengths # -iscl
--minimum-space-to-comment=1 # -msc=1
--closing-side-comments # -csc
# --delete-closing-side-comments # -csc
--closing-side-comment-interval=5 # -csci=5
--closing-side-comments-balanced # -cscb
--closing-side-comment-else-flag=2 # -csce=2
# --closing-side-comment-prefix="#-# End" # -cscp="#-# End"
# --closing-side-comment-warnings # -cscw
--static-block-comments # -sbc
--static-block-comment-prefix=##(?:\s|$) # -sbcp=##(\s?:\s|$)
--static-side-comments # -ssc
##################
# Line Break Control
##################
--cuddled-else # -ce
--cuddled-blocks # -cb
--cuddled-block-list="sort map grep" # -cbl="sort map grep"
--no-opening-brace-on-new-line # -nbl
--opening-brace-always-on-right # -bar
--break-before-hash-brace=2 # -bbhb=2
--break-before-hash-brace-and-indent=0 # -bbhbi=0
--weld-nested-containers # -wnc
--weld-nested-exclusion-list="q" # -wnxl="q"
--vertical-tightness=2 # -vt=2
--vertical-tightness-closing=3 # -vtc=3
--stack-opening-tokens # -sot
--stack-closing-tokens # -sct
--delete-old-newlines # -dnl
--add-newlines # -anl
--break-after-all-operators # -baao
--want-break-before="<< >> && || // ! and or not xor ? :" # -wbb="<< >> && || // ! and or not xor ? :"
##################
# Controlling List Formatting
##################
--comma-arrow-breakpoints=2 # -cab=2
##################
# Retaining or Ignoring Existing Line Breaks
##################
--ignore-old-breakpoints # -iob
--keep-interior-semicolons # -kis
##################
# Blank Line Control
##################
--blanks-before-comments # -bbc
--blanks-before-blocks # -bbb
--blank-lines-before-packages=2 # -blbp=2
--blank-lines-before-subs=2 # -blbs=2
--long-block-line-count=1 # -llbl=1
--keep-old-blank-lines=0 # -kbl=0
--keyword-group-blanks-list="use require our" # -kgbl="use require our"
--keyword-group-blanks-size=1 # -kgbls=1
--keyword-group-blanks-before=2 # -kgbb=2
--keyword-group-blanks-after=2 # -kgba=2
--keyword-group-blanks-inside # -kgbi
--keyword-group-blanks-delete # -kgbd