I'm not sold on the rule ID. Per our conventions, rules that disallow something should begin with "no". Maybe no-inner-declarations?