Subject: Developers of Sympa
List archive
- From: IKEDA Soji <address@concealed>
- To: address@concealed
- Subject: [sympa-developpers] perltidy
- Date: Mon, 26 Nov 2012 17:55:06 +0900
Hi developers,
Current codebase seems beset by mixture of indentations and very
long lines hard to read. To keep readability and maintainability,
I'd like to propose regular reformatting of all sources using such
as perltidy.
Below is my experimental ~/.perltidyrc. By now Commands.pm,
Robot.pm, Site.pm and User.pm was reformatted using it. Would you
like to get your opinion about this preference, and also
reformatting itself?
---------- >8 ---------------- >8 ---------------- >8 ----------
-bar # Opening brace always on right (* no)
-bbt=1 # Medium block brace tightness
-bt=2 # Medium brace tightness (* 1)
-ce # Cuddled else (* no)
-ci=4 # Continuation indent is 4 cols
-cti=0 # No extra indentation for closing brackets
-et=8 # Entab leading 8 whitespace (* none)
-i=4 # Indent level is 4 cols
-l=78 # Max line witdh is 78 cols
-nolq # Don't outdent long quoted strings
-nsbl # No opening sub brace on new line (* -sbl)
-nsfs # No space before semicolons
-pt=2 # Medium parenthesis tightness (* 1)
-sbt=2 # Medium square bracket tightness (* 1)
-se # Errors to STDERR
#-st # Output to STDOUT
-vt=2 # Maximal vertical tightness
-wba="% + - * / x != == >= <= =~ !~ < > | & >= < = **= += *= &= <<= &&= -= /=
|= >>= ||= .= %= ^= x= || && . ? : and or xor"
# Break after all operators (* not contains "||" and tokens appear after it)
---------- 8< ---------------- 8< ---------------- 8< ----------
Comments with "*" describe "best practice" preferences.
--
株式会社 コンバージョン セキュリティ&OSSソリューション部 池田荘児
〒231-0004 神奈川県横浜市中区元浜町3-21-2 ヘリオス関内ビル7F
e-mail address@concealed TEL 045-640-3550
http://www.conversion.co.jp/
-
[sympa-developpers] perltidy,
IKEDA Soji, 11/26/2012
- Re: [sympa-developpers] perltidy, David Verdin, 11/27/2012
Archive powered by MHonArc 2.6.19+.