Add tests to verify rule documentation

The tests check that docs for all rules exist, and that the descriptions, tags
and parameters match what the rules say they are.