Electrical rule check