I write a rule with the template but the same issue is reported multiple times for the same location

I installed the Checkstyle plugin and added a custom rule based on a Checkstyle template. The regular expression for this rule is ^[a-z][a-z0-9]*(?:[a-zA-Z0-9]+[a-z0-9]*[A-Z][a-z0-9]*)*$. After applying this rule, I encountered two issues:

  1. The same issue is reported multiple times (11 times) for the same location.
  2. After synchronizing this rule to IntelliJ IDEA using SonarLint, the sonarlint cannot detect the issue. However, the issue is reported when the scan results are synchronized to SonarQube using SonarScanner.

Hi,

Welcome to the community!

Even though you’re seeing this through Sonar tools, this is really a Checkstyle question. You’re better off raising an issue in that community.

 
Ann