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.
The switchover parameters were given in the wrong order.
The five second sleep was not adequate and replacing it with monitor waiting should improve stability.
Added a test case that verifies that a successful transaction replay is performed when a master switchover is performed.