Hi again, the script for checking modified/added files based on `hg status` is now in place: src/contrib/style/hgstylecheck.sh
What is the best way to integrate it into make? I thought about something like $> make stylecheck but this is somewhat misleading since it only checks modified/added files, not the full source tree. The alternative $> make stylecheckdiff is probably too lengthy. Maybe $> make stylediff ? Other suggestions? Best regards, Karli On 03/05/2013 03:45 PM, Karl Rupp wrote: > Dear PETScians, > > it is now possible to obtain a style violation summary on a per-file > basis. The script is > ${PETSC_DIR}/src/contrib/style/stylecheck.sh > and runs all stable^1 checks on the provided subfolder(s) or files(s). > > Examples: > > - Report all violations in src/ts: > $:petsc-dev> src/contrib/style/stylecheck.sh src/ts > > - Report all violations in power_grid/ex8.c: > $:petsc-dev> src/contrib/style/stylecheck.sh \ > src/ts/examples/tutorials/power_grid/ex8.c > > I'm currently trying to fuse the script with `hg status` so that one can > conveniently run it on all new or modified files. Please let me know of > any issues you encounter. > > Best regards, > Karli > > ^1 A stable check is a check that causes less than ~100 complaints over > all of src/, see http://krupp.iue.tuwien.ac.at/petsc-style/