Quick change to add support for exclude-pattern in a ruleset

It does exactly what it says on the tin.