Check whitespace errors during PR validation.

review by @gkossakowski

Could you update docs and announce on scala-internals?
yeah -- it should really be part of the gitconfig in the repo, I guess