Factor out lint sample rules

This gives space for adding future rules.  It also allows some rules to have larger explanations and examples.