[mapserver-dev] code formatting and astyle

Frank Warmerdam warmerdam at pobox.com
Thu Mar 12 19:56:46 EDT 2009


Steve Lime wrote:
> I'd be ok with this. It's pretty interesting stomping around in places where a number
> of developers have contributed code. Personally I'm a fan of K&R formatting with a 
> two-space indent, no padding around parens, and allowing one-liners.
> 
> Steve
> 
>>>> "Kralidis,Tom [Ontario]" <Tom.Kralidis at ec.gc.ca> 03/11/09 6:47 AM >>>
> 
> devs: inspired by pramsey's post on geos-devel [1], I wonder what dev's
> think about running the MapServer codebase through an agreed upon
> convention via astyle [2], and sticking to it for future development.
> 
> Thoughts?

Folks,

I'm personally mildly against doing this.  I prefer to use "my own style"
in code I primarily maintain within MapServer and I try to fit with other code
when modifying other areas.  I think that strict coding conventions is a
modest disincentive to casual contributions.

Of course if it is the will of the majority I will cooperate.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the mapserver-dev mailing list