IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2474


Ignore:
Timestamp:
Nov 24, 2004, 4:23:35 PM (22 years ago)
Author:
jhoblitt
Message:

misc clarifications
allow the rule about trailing comments to be ignored because perltidy will reformat code in the conforming style.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/misc/perlCodeConventions.tex

    r2471 r2474  
    1 %%% $Id: perlCodeConventions.tex,v 1.35 2004-11-25 02:02:33 jhoblitt Exp $
     1%%% $Id: perlCodeConventions.tex,v 1.36 2004-11-25 02:23:35 jhoblitt Exp $
    22\documentclass[panstarrs]{panstarrs}
    33
     
    348348
    349349Comments should not be used to comment out large sections of code.  When
    350 deactivating 2 or fewer lines of code a double hash (\code{##}) should be used
    351 at the very beginning of the line(s).
     350deactivating 2 or fewer consecutive lines of code a double hash (\code{##})
     351should be used at the very beginning of the line(s).
    352352
    353353Example of deactivating a single line code.
     
    361361When deactivating 3 or more lines of code an \code{if} statement should be used
    362362with a false boolean value.  The opening and closing of the \code{if} statement
    363 must be at the very beginning of the line.
     363should be nest to the same depth as the surrounding code and the deactivated
     364section should be indented.
    364365
    365366Example of deactivating multiple lines of code.
     
    442443    }
    443444\end{verbatim}
     445
     446\emph{\code{perltidy} is incapable of formatting trailing comments in this
     447style.  It will force trailing comments to be 4 spaces to the right of the last
     448character in any statement on the line.  However, it will add additional spaces
     449to cause trailing comments in adjoining lines to be vertically aligned.  Until
     450such time as \code{perltidy} can following this convention or a replacement
     451tool is located, code as formatted by \code{perltidy} will be considered
     452acceptable.}
    444453
    445454\subsection{API Comments}
Note: See TracChangeset for help on using the changeset viewer.