SONAR-4535 Add some check when creating new rule