incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carol Frampton <cfram...@adobe.com>
Subject Re: Code formatting for patch submissions
Date Mon, 27 Feb 2012 20:03:00 GMT


On 2/27/12 1 :55PM, "Gordon Smith" <gosmith@adobe.com> wrote:

>I wrote Adobe's coding guidelines for ActionScript and I noticed a few
>ways in which this formatting doesn't match what the framework's current
>conventions:
>
>1. We wrap lines at 80 characters.

Gordon we changed the wrap to 100 characters last year when we updated the
spec.  If you use FlashBuilder you can configure the Text Editor to show
the print margin at 100 which is a handy reference.

Carol

>
>2. We make the first line of a multiline comment be /* or /** with no
>text.
>
>3. We put an asterisk on every line of a multiline comment.
>
>4. We line up the asterisks in a multiline comment.
>
>5. We use two spaces after the asterisks so that the text starts at the
>same indent position as code.
>
>- Gordon Smith, Adobe
>
>
>-----Original Message-----
>From: Justin Mclean [mailto:justin@classsoftware.com]
>Sent: Sunday, February 26, 2012 2:50 PM
>To: flex-dev@incubator.apache.org
>Subject: Re: Code formatting for patch submissions
>
>Hi,
>
>> Which flex formatter properties file did you use to format the code
>> example you made? I sent one in a previous thread, did you use that
>> one or an Adobe one?
>
>Just pushed the button in the preferences  marked "Set to Adobe
>standards". I believe it has a couple of differences to what the
>"standards" are now but it's a good start.
>
>Thanks,
>Justin


Mime
View raw message