-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.perltidyrc
60 lines (58 loc) · 1.31 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
## .perltidyrc --- configuration for perltidy
## https://perltidy.sourceforge.net/perltidy.html
# No max line width
-l=0
# Output to STDOUT
-st
# Errors to STDERR
-se
# Maximal vertical tightness
-vt=2
# Align postfix unless with postfix if
-viu
# Indent level is 2 cols
-i=2
# Continuation indent also 2 cols
-ci=2
# Indent via tabs, 1 tab=8 spaces
-et=8
# Line up list indentation
-xlp
# No trailing commas in lists, just in case
-wtc=0
-dtc
# Indent closing braces/brackets to match opener
-cti=1
# All containers tight (parentheses, braces, square brackets, block braces)
-act=2
# Keep else on same line as closing brace, can add others via -cbl
-ce
# No space before semicolons in for loops
-nsfs
# Don't require blank lines before comments
-nbbc
# Weld two opening containers, e.g. ({
-wn
# But do require a blank line before, but not after, at least 3 similar items
-kgbs=3
-kgbb=2
-kgba=1
# Add a blank when switching items?
-kgbi
# Maximum blank lines
-mbl=3
# Don't add whitespace, but delete it? Basically, don't do the aligning = space
# thing. Let's give it a try!
# -naws
# No whitespace around .
-nwls="."
-nwrs="."
# Don't outdent long quoted strings
-nolq
# Break before and after all operators
-bbao
-baao
# Preserve line endings
-ple
# Have -dbs report all blocks, regardless of size/LOC. Annoying if -dbt not sub
-dbl=1