devonfw / sonar-devon4j-plugin

Plugin for SonarQube to validate devonfw architecture
Apache License 2.0
10 stars 16 forks source link

Checkstyle plugin error when sonar-devon4j-plugin is also installed #117

Closed isandesh1986 closed 3 years ago

isandesh1986 commented 3 years ago

Expected behavior

As a developer, I want Checkstyle and sonar-devon4j-plugin to work together.

Actual behavior

As soon we install Checkstyle plugin along with sonar-devon4j

Steps to reproduce (bug) / Use Case of feature request (enhancement)

  1. In Windows - Installed SonarQube server latest version - Installed CheckStyle, FindBugs, CodeSmells and PMD. SonarQube server starts up successfully. As I copy either of the sonar-devon4j-plugin-2020.12.001.jar or sonar-devon4j-plugin-2020.12.002-SNAPSHOT.jar - SonarQube server doesn't come up. Error logs are pasted below from the sonar - web.log files

2020.12.14 18:14:46 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile java/devonfw Java 2020.12.14 18:14:48 ERROR web[][o.s.s.p.Platform] Background initialization failed. Stopping SonarQube org.sonar.server.exceptions.BadRequestException: Rule template can't be activated on a Quality profile: checkstyle:com.puppycrawl.tools.checkstyle.checks.annotation.AnnotationLocationCheck at org.sonar.server.exceptions.BadRequestException.create(BadRequestException.java:57) at org.sonar.server.exceptions.BadRequestException.create(BadRequestException.java:61) at org.sonar.server.exceptions.BadRequestException.checkRequest(BadRequestException.java:44) at org.sonar.server.qualityprofile.RuleActivator.doActivate(RuleActivator.java:83) at org.sonar.server.qualityprofile.RuleActivator.activate(RuleActivator.java:77) at org.sonar.server.qualityprofile.BuiltInQProfileUpdateImpl.update(BuiltInQProfileUpdateImpl.java:73) at org.sonar.server.qualityprofile.RegisterQualityProfiles.update(RegisterQualityProfiles.java:132) at org.sonar.server.qualityprofile.RegisterQualityProfiles.lambda$start$1(RegisterQualityProfiles.java:93) at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:405) at org.sonar.server.qualityprofile.RegisterQualityProfiles.start(RegisterQualityProfiles.java:88)

Related/Dependent Issues

Comments/Hints:

Affected version: