devonfw / sonar-devon4j-plugin

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

Include checkstyle:AnnotationLocationCheck in the quality profile #122

Open lmarniazman opened 3 years ago

lmarniazman commented 3 years ago

As a developer, I want this check to be included in the devonfw quality profile for SonarQube, so that the wrong location of annotations is flagged.

AnnotationLocationCheck from the checkstyle repo was taken out in PR #119, fixing bug #117.

SonarQube detects this rule as a rule template. Additional configuration to instantiate this rule is required. See https://github.com/checkstyle/sonar-checkstyle/blob/master/src/main/resources/org/sonar/plugins/checkstyle/rules.xml#L2083 for configuration parameters of this rule.