Make linters-test print warning differences in easier to use format

In particular, in a format that can be copied and pasted into the
linters-test expected results, and they will match the key order found
in the other expected results.