Add cane violations and code duplication support.