An inspection is done after an accident but no violations unless they find something.
You're probably thinking about CSA. It's not a "violation" just a record that you were involved in an accident, regardless of fault. It looks bad only to people who are ignorant of the fact that it includes all accidents regardless of who caused it.