`inanygroups` rule only looks at the first group

The inanygroups rule only looks at the first group of the list.