Appliance store says I need a shutoff valve behind the refrigerator. They want a valve box in the wall to attach their flexible water line. The plumber put in flexible copper tubing with the shutoff valve under the sink. Appliance store says that's against code. I live in California if that makes a difference. The copper tubing is the smooth type. The refrigerator is a LG French door.
The guy at the appliance store is correct. California plumbing code 606.5 states
A control valve shall be installed immediately ahead of each water-supplied appliance and immediately ahead of each slip joint or appliance supply.