Skip to content

Instantly share code, notes, and snippets.

@aanoaa
Last active January 1, 2016 22:09
Show Gist options
  • Save aanoaa/8208581 to your computer and use it in GitHub Desktop.
Save aanoaa/8208581 to your computer and use it in GitHub Desktop.
# https://github.com/kraih/mojo/blob/master/.perltidyrc
-pbp # Start with Perl Best Practices
-w # Show all warnings
-iob # Ignore old breakpoints
-l=79 # 79 characters per line
-mbl=2 # No more than 2 blank lines
-i=4 # Indentation is 4 columns
-ci=4 # Continuation indentation is 4 columns
-vt=0 # Less vertical tightness
-sbt=2 # High square bracket tightness
-isbc # Don't indent comments without leading space
@yongbin
Copy link

yongbin commented Jan 3, 2014

#
# perl tidy configuration file
#

-w     # report all errors and warnings

#
# Basic Options
#
-i=4   # --indent-columns
-l=78  # --maximum-line-length
-it=2  # --iterations

#
# Code Indentation Control
#
-ci=4  # --continuation-indentation
-cti=0 # --closing-token-indentation
-nolq  # --nooutdent-long-quotes
-nola  # --nooutdent-labels

#
# Whitespace Control
#
-pt=1  # --paren-tightness
-sbt=1 # --square-bracket-tightness
-bt=1  # --brace-tightness
-bbt=0 # --block-brace-tightness
-nsts  # --nospace-terminal-semicolon
-nsfs  # --nospace-for-semicolon
-asc   # --add-semicolons

#
# Comment Controls
#
-ibc     # --indent-block-comments
-isbc    # --indent-spaced-block-comments
-nolc    # --nooutdent-long-comments
-hsc     # --hanging-side-comments
#-csc     # --closing-side-comments
#-csci=12 # --closing-side-comment-interval
#-cscb    # --closing-side-comments-balanced

#
# Skipping Selected Sections of Code
#
-fs # --format-skipping

#
# Line Break Control
#
-nce   # --nocuddled-else
-nbl   # --noopening-brace-on-new-line
-nsbl  # --noopening-sub-brace-on-new-line
-nasbl # --noopening-anonymous-sub-brace-on-new-line
-kis   # --keep-interoir-semicolons

#
# Line Break Control
#

# --want-break-before
-wbb="% + - * / x != == >= <= =~ !~ < > | & = **= += *= &= <<= &&= -= /= |= >>= ||= //= .= %= ^= x="

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment