Hi,
On Mon, 9 Feb 2004, Theo Van Dinter wrote:
> On Tue, Feb 10, 2004 at 10:23:06AM +1300, Sidney Markowitz wrote:
> > Can someone tell me or point me to the indentation standards for the
> > perl source files in SpamAssassin? Use tab characters, or only spaces,
> > or it doesn't matter? If tabs are used what tab width? And indent by how
> > much? I'm having difficulty distinguishing standards from what may be
> > mistakes or simply lack of standards in some source files.
>
> I don't think we ever came up with an "official" set of standards. In
> general:
>
> - indents are 2 spaces
> - use 'if (expr) {', although 'if ( expr ) {' is tolerated when I do it. ;)
>
> uhh... that's all I can remember.
Is this a reasonable set of defaults for perltidy?
# perltidyrc
-i=2 # use n columns per indentation level (default n=4)
-nt # no tabs: use n spaces per indentation level (default)
-bt=2 # sets brace tightness, n= (0 = loose, 1=default, 2 = tight)
-pt=2 # paren tightness (n=0, 1 or 2)
-sbt=2 # square bracket tightness (n=0, 1, or 2)
-ce # cuddled else; use this style: '} else {'
-bar # opening brace always on right, even for long clauses
# __END__
-- Bob