Details

    • Type: Language-Specification
    • Status: Active
    • Resolution: Unresolved
    • Labels:
      None
    • Impact:
      Unknown 'null' severity
    • Likelihood:
      Unknown 'null' severity

      Description

      Shared coding conventions allow teams to collaborate effectively. This rule allows to check that all class names match a provided regular expression.

      The convention in go is to use mixedCaps rather than underscores. See Go documentation for the complete naming conventions.

      Note that the casing of the first character determines if the type is exported or not.

      Noncompliant Code Example

      With default provided regular expression ^[a-zA-Z][a-zA-Z0-9]*$:

      type my_struct struct {...}
      

      Compliant Solution

      type myStruct struct {...}
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              nicolas.harraudeau Nicolas Harraudeau (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: