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

Method names should comply with a naming convention

    Details

    • Type: Code Smell Detection
    • Status: Active
    • Resolution: Unresolved
    • Labels:
    • Message:
      Rename [method|function|subroutine] "XXXX" to match the regular expression ${format}.
    • Default Severity:
      Minor
    • Impact:
      Low
    • Likelihood:
      Low
    • Default Quality Profiles:
      Sonar way
    • Legacy Key:
      MethodName
    • Targeted languages:
      TypeScript
    • Covered Languages:
      ABAP, C#, C, C++, Flex, Go, Java, JavaScript, Kotlin, Objective-C, PHP, Python, RPG, Ruby, Scala, Swift
    • Irrelevant for Languages:
      Cobol, HTML, PL/I, PL/SQL, T-SQL, XML
    • Remediation Function:
      Constant/Issue
    • Constant Cost:
      5min
    • Analysis Level:
      Syntactic Analysis
    • Analysis Scope:
      Main Sources, Test Sources
    • Common Rule:
      Yes
    • Checkstyle:
      MethodName, AbbreviationAsWordInName
    • ESLint:
      id-length, id-match, no_underscore_dangle
    • FindBugs:
      NM_METHOD_NAMING_CONVENTION
    • PMD:
      MethodNamingConventions, ShortMethodName
    • Pylint:
      C0103
    • ReSharper:
      InconsistentNaming

      Description

      Shared naming conventions allow teams to collaborate efficiently. This rule checks that all function names match a provided regular expression.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                freddy.mallet Freddy Mallet (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: