SONAR-3837 Fix violation tracking mechanism