we are currently working on shipping built-in quality profiles with our java plugin and had some questions on getting information about the server at startup:
1) Is there a way of knowing which other plugins are currently installed on the server? The issue is, if our quality profile is looking for rules from external plugins that are not installed, the server won’t start. So our thinking was that we could filter those rules, depending on whether the required plugins are there or not.
2) Is it possible to get the information if our quality profile is newly created on the server or merely updated? We would like to set the profile as default when our plugin is installed the first time, but we don’t want to override the users default quality profile settings every time their server starts up.
3) Since we are also using some of the standard java rules from sonar directly, we would like to get the version of the Sonar Java Analyzer that is currently in use on the server. Since the repo keys of those rules changed from ‘squid’ to ‘java’, we would like to check if the version of the analyzer is 6.0 or lower, and set the repo keys accordingly. Is that possible somehow?
Thanks a lot in advance and greetings!