[core] show rule id and line id when errors