remove deprecated method addViolationAtSubPath() and use addViolationAt() instead.