Two Groovy false positives -ClassNameRule and PackageNameRule

  • What language is this for?

  • Which rule?

  • Why do you believe it’s a false-positive/false-negative?
    Claims that AlertController violates “starts with an uppercase letter and is followed by zero or more word characters (letters, numbers or underscores) or dollar signs ($)”.
    Claims that com.test.observe.controller violates “consists of only lowercase letters and numbers, separated by periods”.

  • Are you using

    • SonarCloud?
    • SonarQube - which version?
    • SonarLint - which IDE/version?
      • in connected mode with SonarQube or SonarCloud?

Analyzing on SonarQube server

  • How can we reproduce the problem? Give us a self-contained snippet of code (formatted text, no screenshots)
package com.test.observe.controller

class AlertController {


Welcome to the community and thanks for this report!

I guess you’re reporting this here because you’re seeing these issues in SonarQube? Based on the rule keys you’ve provided, they’re from CodeNarc, rather than from us. So you would need to report these false positives to the CodeNarc folks.


Gotcha, thanks for the clarification.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.