Pathspec magic to ignore mock files when testing for whitespace

Pathspec magic to ignore mock files when testing for whitespace