Skip to content

Instantly share code, notes, and snippets.

@aanoaa
Created June 11, 2013 04:42
Show Gist options
  • Save aanoaa/5754512 to your computer and use it in GitHub Desktop.
Save aanoaa/5754512 to your computer and use it in GitHub Desktop.
## .perltidyrc --- configuration for perltidy
# Max line width is 78 cols
-l=78
# Indent level is 4 cols
-i=4
# Continuation indent is 4 cols
-ci=4
# Output to STDOUT
-st
# Errors to STDERR
-se
# Maximal vertical tightness
-vt=2
# No extra indentation for closing brackets
-cti=0
# Medium parenthesis tightness
-pt=1
# Medium brace tightness
-bt=1
# Medium square bracket tightness
-sbt=1
# Medium block brace tightness
-bbt=1
# No space before semicolons
-nsfs
# Don't outdent long quoted strings
-nolq
# Break before all operators
-wbb="% + - * / x != == >= <= =~ !~ < > | & >= < = **= += *= &= <<= &&= -= /= |= >>= ||= .= %= ^= x="
@yongbin
Copy link

yongbin commented Jun 11, 2013

제가 쓰는거

#
# 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