I am developing the SonarQube plug-in and operating according to plug-in example. My version of SonarQube is 220.127.116.11466 and the API version I use is 18.104.22.1685.
I found that for the NewRule instance, after calling the addDescriptionSection() method and calling the setType (RuleType. SECURITY_HOTSPOT) method, the corresponding Description Section cannot be generated for the rule, but when I modify it to setType (RuleType. CODE_SMELL), all Description Sections can be created normally.