-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.perltidyrc
More file actions
79 lines (76 loc) · 1.61 KB
/
.perltidyrc
File metadata and controls
79 lines (76 loc) · 1.61 KB
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
## .perltidyrc --- configuration for perltidy
## https://perltidy.sourceforge.net/perltidy.html
## https://github.com/perltidy/perltidy
# 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
# Align wide operators (=>, etc.)
-vwe
# Line up list indentation
-xlp
# No trailing commas in lists, just in case
-wtc=0
-dtc
-dltc
-naltc
# Nicer formatting of qw?
-qwaf
# 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
# Warn about some things
# Unusual variable types
-wvt=1
# Misspelled hash keys
-wuk
# Similar hash keys (probably bad?)
-wsk
# Mismatched args
-wma
# Mismatched returns
-wmr