Skip to Content.
Sympa Menu

devel - Re: [sympa-developpers] perltidy

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: David Verdin <address@concealed>
  • To: address@concealed
  • Subject: Re: [sympa-developpers] perltidy
  • Date: Tue, 27 Nov 2012 10:39:35 +0100

Hi Soji,

Thanks for this proposals. I don't understand everything, so I need to RTFM a little.
I'll post full report and optnions from Étienne and I ASAP.

Cheers,

David

Le 26/11/12 09:55, IKEDA Soji a écrit :
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.


Attachment: smime.p7s
Description: Signature cryptographique S/MIME




Archive powered by MHonArc 2.6.19+.

Top of Page