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/

Reply via email to