By the way, how do you maintain the rules documentation?I did not find a github repository for it. I expected to fix this sample bug through github(if you maintained the documentation by git and host it on github like Microsoft did).
Thanks for letting us know. Indeed the code from example cannot be compiled and it needs to be changed.
Currently the documentation is stored on our JIRA server (https://jira.sonarsource.com/browse/RSPEC-3455) and the files you mentioned are automatically generated by a script based on that.
In order to have the changes persistent, we need to update the rule description first on JIRA and then they will be updated as part of the release. Due to this I have to close you PR but don’t worry the description will be updated in the new version (you can check the updated version here).