Add equals method to Violation.

That not the same. See https://gist.github.com/Spy-Seth/85006e0860c90ca6b124