[foodcritic] fix conditional resource and name collision