Actually, you should check against 2.1 as ``addViolationAtSubPath`` is deprecated as of 2.1