Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 35 lines (30 sloc) 1.34 kb
17afe3d @kberov миш маш
authored
1 # Perl Best Practices (plus errata) .perltidyrc file
2 -l=98 # Max line width is 98 cols
3 -i=4 # Indent level is 4 cols
4 -ci=4 # Continuation indent is 4 cols
5 #-st # Output to STDOUT
6 -se # Errors to STDERR
7 -vt=2 # Maximal vertical tightness
8 -cti=0 # No extra indentation for closing brackets
9 -pt=1 # Medium parenthesis tightness
10 -bt=1 # Medium brace tightness
11 -sbt=1 # Medium square bracket tightness
12 -bbt=1 # Medium block brace tightness
13 -nsfs # No space before semicolons
14 -nolq # Don't outdent long quoted strings
15 -wbb="% + - * / x != == >= <= =~ < > | & **= += *= &= <<= &&= -= /= |= >>= ||= .= %= ^= x="
16 # Break before all operators
17
18 # Extras/overrides/deviations from Perl Best Practices
19 --maximum-line-length=88 # Be more generous
20 --warning-output # Show warnings
21 --maximum-consecutive-blank-lines=2 # Default is 1
22 --nohanging-side-comments # Troublesome for commented out code
23
24 -isbc # Block comments may only be indented if they have some space characters before the #
25 -i=2 # Indent level is 2 cols
26 -ci=2 # Continuation indent is 2 cols
27
28 # We use version control, so just rewrite the file
29 -b
30
31 # For the up-tight folk :)
16fc808 @kberov added .gitignore and .perltidyrc
authored
32 -pt=2 # High parenthesis tightness
33 -bt=2 # High brace tightness
34 -sbt=2 # High square bracket tightness
Something went wrong with that request. Please try again.