myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Schofield <sean.schofi...@gmail.com>
Subject Re: source code formatting
Date Thu, 21 Jul 2005 17:36:43 GMT
I noticed your recent changes were all messed up with the formatting. 
I think the guidelines you mentioned are consistent with what's been
done in the past.  Definitely spaces instead of tabs!

sean

On 7/21/05, Mathias Broekelmann <mbroekelmann@psi.de> wrote:
> I didn´t found a way to add a file to WIKI so I have attached it to this
> mail. If you know a way to add the content to WIKI please do it ;-)
> 
> Cheers,
> Mathias
> 
> Bruno Aranda schrieb:
> > I've updated the wiki with the section MyFaces Developer Notes, which
> > I have obained from the sources before the reorg
> > (developer-notes.txt). There are a few lines about the code style...
> >
> > By the way, it would be nice to have a format file that comply with
> > this conventions for eclipse... ;)
> >
> > Bruno
> >
> > 2005/7/21, Mathias Broekelmann <mbroekelmann@psi.de>:
> >
> >>Not every one is using eclipse so in addition to the eclipse export I
> >>would like to write down the rules I use:
> >>
> >>Rules for source code formatting are based on Java Code Conventions
> >>(http://java.sun.com/docs/codeconv) except:
> >>
> >>- opening braces are on the next line except for array initializers
> >>
> >>- no empty line before a class field
> >>
> >>- new line before else, catch and finally
> >>
> >>that´s all
> >>
> >>Mathias
> >>
> >>Bill Dudney schrieb:
> >>
> >>>I agree that a 'standard' code formatting thing would be great. In
> >>>Eclipse you can export your code formatting settings to a file.
> >>>
> >>>If you have time it would be great to get that file posted on the  WIKI,
> >>>I'll grab it as soon as its there so I stop reformatting all  the code
> >>>in an unacceptable manner :-)
> >>>
> >>>Thanks Mathias!
> >>>
> >>>-bd-
> >>>
> >>>On Jul 21, 2005, at 10:00 AM, Mathias Broekelmann wrote:
> >>>
> >>>
> >>>>I´ve some trouble with code formatting in the myfaces code.
> >>>>
> >>>>I like to write code in bad format and press CTRL+F in eclipse  which
> >>>>pretty prints the code. But that normally formats the entire  file.
> >>>>
> >>>>My last commit shows the results. Every line in the file seems to
> >>>>have changed but only format changes.
> >>>>
> >>>>Do we have somthing like a style guide to follow?
> >>>>
> >>>>If not I would like to make a proposal (it´s seems to be a proposal
> >>>>day;)) for that.
> >>>>
> >>>>Cheers
> >>>>Mathias
> >>>>
> >>>>
> >>>>
> >>>
> >>
> 
> 
>

Mime
View raw message