This is something that's been bugging/worrying me lately.
This is a cap Pikachu I genned way before the actual release just to test the Z-Move. It's obviously illegal, but whereas older PKHeX builds properly flagged it that way, the most recent ones are flagging it as legal.