Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added a perltidy profile

  • Loading branch information...
commit ed5267fe417b8b6d493c719aff14c39aa2ff3b6e 1 parent cdd7849
Kjell-Magne Øierud authored
Showing with 35 additions and 0 deletions.
  1. +35 −0 perltidyrc
View
35 perltidyrc
@@ -0,0 +1,35 @@
+# This perltidy run control file contains what is to be considered an
+# approximation of the code formatting conventions used by the Munin
+# project.
+#
+# The munin source code is a mix of several different coding
+# styles. So an important use of this file is to tidy up old cruft.
+#
+# It is not mandated that code must be run through perltidy with these
+# settings before every commit, as I believe the best formating is
+# done by humans, but the formatting should be close to what a
+# perltidy run would yield.
+#
+# The content is negotiable.
+#
+# Use: perltidy --profile=./perltidyrc [FILE]...
+
+--backup-and-modify-in-place
+--output-line-ending=unix
+--continuation-indentation=4 # Don't really like these, but setting
+ # it to 0 is not good either ...
+--nooutdent-long-lines
+--paren-tightness=2
+--square-bracket-tightness=2
+--brace-tightness=2
+--block-brace-tightness=2
+--nospace-for-semicolon
+--nooutdent-long-comments
+# Default: --nocuddled-else
+# Default: --noopeningbrace-on-new-line
+--opening-brace-always-on-right
+--opening-token-right
+--stack-opening-tokens
+--stack-closing-tokens
+--break-before-all-operators
+--maximum-consecutive-blank-lines=2
Please sign in to comment.
Something went wrong with that request. Please try again.