I recently introduced sonar to a large legacy project, originally written in java 1.3.

We have been gradually migrating code using raw collections etc to use generics. It would be nice to track our progress in sonar, but there does not seem to be an out of the box rule to catch raw collection use.

Is there an existing solution, or will I need to create a custom rule in pmd/checkstyle?