The code actually says that no point along the wall be more than 2 ft from a receptacle. This is often understood as 4 ft. spacing.

Appliance garages are a joker in the deck ... in that receptacles within the garage do not count as the required receptacles.