What's the difference between a violation and an infraction? I've checked the Webster's definitions and couldn't come up with anything better than a violation, unlike infraction, can be related to sports, but I am not sure.
Infraction is an instance or act of breaking a rule or law.
Selling curved bananas is said to be an infraction of EU law.
You could also use violation, but that can also be used when someone is doing something that is morally wrong:
He violated the peace of the church by shouting political slogans.
Generally "violation" can carry the nuance of something being not only illegal but also wrong.