Skip to content

Instantly share code, notes, and snippets.

@cursork
Created December 4, 2012 16:26
Show Gist options
  • Save cursork/4205801 to your computer and use it in GitHub Desktop.
Save cursork/4205801 to your computer and use it in GitHub Desktop.
perltidyrc
# Allow slightly longer lines
--maximum-line-length 100
# 4 space tabs used everywhere
--entab-leading-whitespace 4
--tabs
--continuation-indentation 4
# Don't outdent labels
--no-outdent-labels
# I like semicolons as statement separators, not terminators
--no-add-semicolons
# if ($self =~ /xyz/) rather than if ( $self =~ /xyz/ ) {
--paren-tightness 2
# } elsif ($foo) {
--cuddled-else
# Allow 2 blank lines
--maximum-consecutive-blank-lines 2
# I actually like blanks-before-comments normally, but it's so vile after an
# if, while, etc. that I have to disable it:
# if ($foo) {
# # Foo is set, so I need to do bar
# bar(...);
--noblanks-before-comments
# Tokens such as { on a line by themself is a bit wasteful
--stack-opening-tokens
--stack-closing-tokens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment