Dollar General Corp. will pay the government $12 million and make “systematic” safety improvements at its 20,000 stores to resolve hundreds of violations issued by the Occupational Safety and Health Administration since 2022.

The settlement also serves as a stark warning to legal departments that regulators are apt to insist on deals with perennial violators that carry additional sanctions for lack of corrective action.