Details

    • Type: Language-Specification
    • Status: Active
    • Resolution: Unresolved
    • Labels:
      None
    • List of parameters:
      • key = format
      • description = Regular expression used to check the class names against.
      • default = ^[A-Z][a-zA-Z0-9]*$
      • type = STRING
    • Impact:
      Unknown 'null' severity
    • Likelihood:
      Unknown 'null' severity
    • Default Quality Profiles:
      Override none
    • Legacy Key:
      ClassName

      Description

      Sharing some naming conventions is a key point to make it possible for a team to efficiently collaborate.
      This rule allows to check that all class names (along with Objective-C interface, protocol and implementation names) match a provided regular expression.

      Noncompliant Code Example

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

      // C++
      class foo // Noncompliant
      {
      };
      
      // Objective-C
      @interface nonCompliant : NSObject
      @end
      

      Compliant Solution

      // C++
      class Foo // Compliant
      {
      };
      
      // Objective-C
      @interface Compliant : NSObject
      @end
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              massimo.paladin Massimo PALADIN
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: