Check whitespace errors during PR validation.

review by @gkossakowski

Could you update docs and announce on scala-internals?
This is a side effect. Is it intended to leave the modified config after this function finishes?