See script directory for method. The script to run in the top level MaxScale directory is called maxscale-uncrustify.sh, which uses another script, list-src, from the same directory (so you need to set your PATH). The uncrustify version was 0.66.
Expanded the test to cover interrupted SELECT statements.
Extended test case to cover interrupted writes.
Added a test case that performs basic testing of the functionality.