[Lemon-devel] TABs vs. SPACEs

Alpár Jüttner alpar at cs.elte.hu
Sun Jul 6 18:37:33 CEST 2008


Hi,

Please find my script attached. How do you like it?

> I support this idea, but I would like to recommend a few more, the trailing 
> spaces should be removed from each line (maybe if the line contains not 
> whitespace characters),

The script attached removes the trailing spaces but it also removes the
whitespaces from the otherwise empy lines. Can it cause any problem?

>  and the long lines (excluded some special cases) 
> should be wrapped.

I would do is automatically. But the my script notify about the long
lines.

> I also would like to recommend some automatic checking, which coule be done 
> with the usage of hg commit hooks. A checker script could be included into the 
> repo, which could check the changeset before each local commit.

If someone implement this idea, I will certainly consider using it. :)

Best regards,
Alpar

-------------- next part --------------
A non-text attachment was scrubbed...
Name: unify-sources.sh
Type: application/x-shellscript
Size: 2807 bytes
Desc: not available
URL: <http://lemon.cs.elte.hu/pipermail/lemon-devel/attachments/20080706/d3169611/attachment.sh>


More information about the Lemon-devel mailing list