ruleByDepth: use rule_name and put more info the result