Sonarqube 如何使用自定义插件修复SQ 7.2.1之后的“以下语言没有内置质量配置文件”

Sonarqube 如何使用自定义插件修复SQ 7.2.1之后的“以下语言没有内置质量配置文件”,sonarqube,sonarqube-plugin,Sonarqube,Sonarqube Plugin,我为几个SQ版本开发定制SQ插件。自SQ 7.2.1以来,我面临一个问题。 在SQ启动时,le web.log文件告诉 -normal Register rules -start [o.s.s.q.BuiltInQProfileRepositoryImpl] Load quality profiles -stops with the following error : [o.s.s.p.Platform] Background initialization failed. Stopping So

我为几个SQ版本开发定制SQ插件。自SQ 7.2.1以来,我面临一个问题。 在SQ启动时,le web.log文件告诉

-normal Register rules
-start [o.s.s.q.BuiltInQProfileRepositoryImpl] Load quality profiles
-stops with the following error : [o.s.s.p.Platform] Background initialization failed. Stopping SonarQube
-java.lang.IllegalStateException: The following languages have no built-in quality profiles: csh
注意csh是我的语言名

SQ启动对于7.1版和我的插件之前的版本很好

如何配置自定义插件来解决此问题? 感谢您的帮助

您必须实现内置的InquivalityProfilesDefinition扩展点,以列出默认情况下应为您的语言启用的规则


在SonarQube 7.2之前,并不强制为每种语言声明内置的质量配置文件,但这会导致一些错误。见

谢谢朱利安。SQ 6.6和<7.2.1中的延伸点接缝为可选接缝,SQ 7.2.1及以上的延伸点接缝为强制性接缝。