Hi all,

We have a replacement for the old beautify.perl script:
scripts/other/beautify.py.

It does one of two things, or both:
 * Re-format C/C++ source code, just like the old script did.
 * Check for style errors and such.

This last thing is called a "lint" check.  For this I chose Pocketlint,
a checker I have good experiences with, although if people want a
different one (or additional checks) I can change that.

I fixed most of the lint that got reported, except in JavaScript code.
We may add automatic reformatting for additional languages later.  I
sincerely hope all of this does not cause any serious merge problems for
your branches.

Ideally, everyone would get in the habit of installing Pocketlint and
running this script regularly whether they accidentally added any lint.
 To see how the script works, run:

    ./scripts/other/beautify.py -h

The lint check processes a few files at a time.  By default it stops
when it sees lint.  If you want to see a full check, use the -i option.


Jeroen
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to