Add hook to register a custom linter rule.

This allows you to write a rule and register it.