Maybe I was just blind, but I couldn’t actually find any documentation on how to do quickfixes. Everything I have found was by manually going through the sonar-plugin-api git repo (and then finding the NewIssue class with the quickfix methods) but of course that only has a very general description of the methods’ purpose.
Also, after I first started actually attempting quickfixes I also noticed that I couldn’t seem to set “quickfixAvailable” to true for any issue (using the setQuickfixAvailable method from NewIssue). Only after looking at the json files for the regular sonar-java rules I found the quickfix tag (which is not mentioned in CUSTOM RULES 101!) and then a community post lead me to the explanation for rule metadata. At this point we had to redo our rule creation because we had modeled it after the JavaRulesDefinition in the sonar-custom-plugin-example (it was recommended to start from this base project) and here the rules aren’t actually based on json metadata but instead are created directly on the repository with a method “createRule” which apparently doesn’t have the option of attaching quickfix related metadata. Setting “quickfixAvailable” to true worked afterwards (though quickfixes themselves of course still didn’t).
So all in all, I think the documentation on quickfixes could definitely be improved. (Unless I’ve just missed existing docs)