[build] check if rules have same id