-
Notifications
You must be signed in to change notification settings - Fork 0
/
.perltidyrc
39 lines (36 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
# Want these
-i=4 # 4 character indents in blocks
-pt=2 # "horizontal tightness" 2 - no space for parenthesis tokens
-wls='=>' # ensure there's always space to the left of =>
-wrs='=>' # and always to the right of =>
-vtc=0 # always break before a closing token
-l=79 # 79 characters wide please
-nolc # no "outdenting" for long comments - indent them properly
-nolq # no "outdenting" for long quotes/strings
-ssc # static side comments - don't mess with end-of-line comments
-sscp=# # static comment identifier
-nola # don't outdent labels
# Don't want these
#-sot # stack opening tokens - same as -sop -sohb -sosb
#-sct # stack closing tokens when possible to avoid lines with isolated closing tokens.
#-lp # line up parentheses
#-vt=2 # define opening vertical tightness
#-st -se # filter instructions to the parser docs
#-nsfs # 'for' loop semicolon spaces
#-nbbc # no blanks before comments
# Docs
#
# Reference for all the possible perltidy options:
# http://perltidy.sourceforge.net/perltidy.html#formatting_options
#
# Detailed explanation of some of the options:
# http://perltidy.sourceforge.net/stylekey.html
# How to disable
#
#<<< do not let perltidy touch this
#my @list = (1,
# 1, 1,
# 1, 2, 1,
# 1, 3, 3, 1,
# 1, 4, 6, 4, 1,);
#>>>