Two Groovy false positives -ClassNameRule and PackageNameRule

  • What language is this for?
    Groovy

  • Which rule?
    grvy:org.codenarc.rule.naming.ClassNameRule
    and
    grvy:org.codenarc.rule.naming.PackageNameRule

  • 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?

SonarScanner 4.7.0.2747
Analyzing on SonarQube server 9.9.1.69595

  • 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 {
    
}

Hi,

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.

 
Ann

Gotcha, thanks for the clarification.

1 Like

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