Page 1 of 1

Re: [Nagios-devel] Nagios indentation

Posted: Fri Nov 19, 2010 9:49 am
by Guest
On Fri, Nov 19, 2010 at 04:38, Andreas Ericsson 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
--=20
[email protected]=C2=A0 "=E9=87=91=E9=B1=BC" http://linkedin.com/in=
/goldfish
please, no proprietary attachments (http://tinyurl.com/cbgq)





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]