Nagios indentation

Allan Clark allanc at chickenandporn.com
Fri Nov 19 10:49:33 CET 2010


On Fri, Nov 19, 2010 at 04:38, Andreas Ericsson <ae at op5.se> wrote:
> [...]
> Unless someone complains before monday I'll add a Makefile target
> to indent the sources, run it once and then commit the results, with
> a note added so that future contributors know what to do to make
> their code conform to the standard.
>
> vim and emacs users should look into using their editors respective
> 'smart tabs' settings. Most decent editors support aligning with
> spaces and indenting with tabs nowadays, but if you're not using one
> of them, you can just run 'make pretty' or 'make indent' before you
> submit your patches.

Why not make it an indentation filter in the .wrapper?

That way, whatever formatting-butchery people accidentally do in their
editors, the checkin is re-normalized automatically at the point of
checkin.

Allan
-- 
allanc at chickenandporn.com  "金鱼" http://linkedin.com/in/goldfish
please, no proprietary attachments (http://tinyurl.com/cbgq)

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list