Print

Print


Hi,

There were a few objections to this, so I’m holding off on it for now.  

Specifically, some questions arose about comment formatting, bracket placement in conditional statements, etc.

I’ll export the proposed formatting settings to XML, and then they can be imported into Eclipse.

That way everyone can try them out before I modify all the code and provide suggestions etc.

Hope that works.

—Jeremy

On Nov 10, 2014, at 11:13 AM, Jeremy McCormick <[log in to unmask]> wrote:

> Hi,
> 
> I would like to apply standard source code formatting to all of our Java source files in HPS Java. 
> 
> This would include application of the standard Java conventions and replacement of all tabs with spaces.  (There are a few other minor changes to the default Java formatting having to do with display of Javadoc comments.)  I have covered this formatting in previous emails and in our Confluence docs.
> 
> I want to do this because our source code is a mess in this regard.  Everyone seems to be using different conventions for things like tabs vs spaces, brackets, spacing in their code statements, etc.  I would like to standardize this across all our code once and for all.  
> 
> Also, having so many different ways of formatting is a pain if you need/want to modify someone else’s code.  Should you use the “standard” formatting or follow the existing formatting in that class?
> 
> If everyone could commit their local changes to the SVN, say by the end of today, this would help greatly.  If you have a file with many local changes that isn’t checked into SVN and I do this, it will likely cause some conflicts when you ‘svn up’.
> 
> If there are any objections, then speak now or forever hold your piece.
> 
> —Jeremy

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the HPS-SOFTWARE list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1