Open an issue with your proposal. Make sure you elaborate on what problem it solves and include fail/pass examples. (Example)
First open an issue with your proposal. When the rule is accepted, see the docs on creating and submitting a new rule.
See the docs on creating and submitting a new rule.
See the docs on writing tests.