Skip to content

Commit 0210e70

Browse files
committed
.perltidyrc: A bunch of options
`-vwe`, `-dltc`, `-naltc`, `-qwaf`, `-wvt=1`, `-wuk`, `-wsk`, `-wma`, `-wmr`
1 parent 86cf596 commit 0210e70

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.perltidyrc

+19
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
## .perltidyrc --- configuration for perltidy
22
## https://perltidy.sourceforge.net/perltidy.html
3+
## https://github.com/perltidy/perltidy
34

45
# No max line width
56
-l=0
@@ -17,11 +18,17 @@
1718
-ci=2
1819
# Indent via tabs, 1 tab=8 spaces
1920
-et=8
21+
# Align wide operators (=>, etc.)
22+
-vwe
2023
# Line up list indentation
2124
-xlp
2225
# No trailing commas in lists, just in case
2326
-wtc=0
2427
-dtc
28+
-dltc
29+
-naltc
30+
# Nicer formatting of qw?
31+
-qwaf
2532
# Indent closing braces/brackets to match opener
2633
-cti=1
2734
# All containers tight (parentheses, braces, square brackets, block braces)
@@ -58,3 +65,15 @@
5865

5966
# Have -dbs report all blocks, regardless of size/LOC. Annoying if -dbt not sub
6067
-dbl=1
68+
69+
# Warn about some things
70+
# Unusual variable types
71+
-wvt=1
72+
# Misspelled hash keys
73+
-wuk
74+
# Similar hash keys (probably bad?)
75+
-wsk
76+
# Mismatched args
77+
-wma
78+
# Mismatched returns
79+
-wmr

0 commit comments

Comments
 (0)