Uploaded image for project: 'Rules Repository'
  1. Rules Repository
  2. RSPEC-3419

Group ids should follow a naming convention

    XMLWordPrintable

    Details

    • Type: Code Smell Detection
    • Status: Active
    • Resolution: Unresolved
    • Labels:
    • Message:
      Update this "groupId" to match the provided regular expression: xxx.
    • Highlighting:
      Hide

      groupId value

      Show
      groupId value
    • List of parameters:
      • key: regex
      • description: The regular expression the "groupId" should match
      • default: (com|org)(\.[a-z][a-z-0-9]*)+
    • Default Severity:
      Minor
    • Impact:
      Low
    • Likelihood:
      Low
    • Covered Languages:
      Java
    • Remediation Function:
      Constant/Issue
    • Constant Cost:
      5min
    • Analysis Scope:
      Main Sources, Test Sources

      Description

      Shared naming conventions allow teams to collaborate effectively. This rule raises an issue when the a pom's groupId does not match the provided regular expression.

      Noncompliant Code Example

      With the default regular expression: (com|org)(\.[a-z][a-z-0-9]*)+

      <project ...>
        <groupId>myCo</groupId>  <!-- Noncompliant -->
      
        <!-- ... -->
      </project>
      

      Compliant Solution

      <project ...>
        <groupId>com.myco</groupId>
      
        <!-- ... -->
      </project>
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              ann.campbell.2 Ann Campbell
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: