- Use SonarJava version < 6.0
- Create a new rule from a template rule
- Upgrade SonarJava to version >= 6.0
- The created rule is still using the old rule key 'squid' instead of new key 'java'
Waiting for this fix, a workaround to fix this issue is to delete rules created from template and to re-create it.